sane/sane-backends-1.0.22-fix-str-fmt.patch

23 lines
523 B
Diff
Raw Normal View History

Index: frontend/scanimage.c
===================================================================
--- frontend/scanimage.c
+++ frontend/scanimage.c 2011-03-17 12:17:35.350469332 +0100
@@ -1891,7 +1891,7 @@
printf (start, int_arg);
break;
case 0:
- printf (start);
+ printf ("%s", start);
break;
}
*percent = cc;
@@ -1905,7 +1905,7 @@
}
}
if (*start)
- printf (start);
+ printf ("%s", start);
}
}
if (i == 0 && ch != 'f')