chiark / gitweb /
fix space handling
[ypp-sc-tools.web-live.git] / pctb / convert.c
index f3de35936c14df5f40325ed8bee8508d32e7c8ec..163f81448882a632980e5a6b6db1db7a778607a1 100644 (file)
@@ -9,7 +9,7 @@ typedef struct {
 static int height, width;
 static char *image;
 
-static void debug_flush(void) {
+void debug_flush(void) {
   eassert(!fflush(debug));
   eassert(!ferror(debug));
 }
@@ -257,7 +257,7 @@ static void ocr_rectangle(Rect r) {
 
   results= ocr(w,h,cols);
   printf("YES! \"");
-  for (res=0; res->s; res++)
+  for (res=results; res->s; res++)
     printf("%s",res->s);
   printf("\"\n");
   eassert(!ferror(stdout));