Close if no sample could be read anymore. Thanks to Jean-Michel FRIEDT. - acarsdec - an ACARS decoder (DIR) Log (DIR) Files (DIR) Refs (DIR) README --- (DIR) commit 844d4ed85cd2a54e7e8a9825171b1b0b7baa86df (DIR) parent 55d126e9a6f958e00e9f6196786f213ee9d7f643 (HTM) Author: Christoph Lohmann <20h@r-36.net> Date: Wed, 15 Aug 2012 14:13:09 +0200 Close if no sample could be read anymore. Thanks to Jean-Michel FRIEDT. Diffstat: main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/main.c b/main.c @@ -202,7 +202,7 @@ int main(int argc, char **argv) len = getsample(sample, 4096); if (debug) fprintf(stderr, "Got sample: %d\n", len); - if (len < 0) + if (len <= 0) break; for (ind = 0; ind < len;) {