diff options
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | debian/patches/use-proper-format-string.diff | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series index 341f07c..3cb8db3 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ fix-typo-on-mowgli-url.hg219e1937b9f5.diff +use-proper-format-string.diff diff --git a/debian/patches/use-proper-format-string.diff b/debian/patches/use-proper-format-string.diff new file mode 100644 index 0000000..7c9f81c --- /dev/null +++ b/debian/patches/use-proper-format-string.diff @@ -0,0 +1,16 @@ +Description: Use the proper format string + Format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘size_t’, + so use ‘%lz’. +Author: Andrew O. Shadoura <bugzilla@tut.by> + +--- libguess-1.0.orig/src/tests/harness.c ++++ libguess-1.0/src/tests/harness.c +@@ -20,7 +20,7 @@ int main(int argc, char **argv) + + while (fgets(buf, 1024 * 1024 - 1, fp)) + { +- printf("length = %ld\n", strlen(buf)); ++ printf("length = %z\n", strlen(buf)); + printf("jp = %s\n", libguess_determine_encoding(buf, strlen(buf), GUESS_REGION_JP)); + printf("tw = %s\n", libguess_determine_encoding(buf, strlen(buf), GUESS_REGION_TW)); + printf("cn = %s\n", libguess_determine_encoding(buf, strlen(buf), GUESS_REGION_CN)); |