From 9d7f57d0ea98d85b84618816dc8e961e00569cc1 Mon Sep 17 00:00:00 2001 From: John Forecast Date: Wed, 29 Mar 2017 14:07:10 -0700 Subject: [PATCH] Update cosy converter --- converters/cosy/cosy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/converters/cosy/cosy.c b/converters/cosy/cosy.c index 2208331..e6472d1 100644 --- a/converters/cosy/cosy.c +++ b/converters/cosy/cosy.c @@ -193,7 +193,10 @@ int decompressCard( idx = 0; - while (((ch = fgetc(src)) != -1) && (ch != 0)) { + while ((ch = fgetc(src)) != -1) { + if (ch == 0) + continue; + if (ch == PREFIX) { if ((ch = fgetc(src)) == -1) break;