summaryrefslogtreecommitdiff
path: root/debian/patches/02-use-proper-format-string.diff
blob: 8ac565dacba03c04f44bdeb8d6665d19e3ef7424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Use the proper format string
 Format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘size_t’,
 so use ‘%zu’
Author: Andrew O. Shadoura <bugzilla@tut.by>
Bug: http://jira.atheme.org/browse/LG-2

--- a/src/tests/harness.c
+++ b/src/tests/harness.c
@@ -20,7 +20,7 @@
 
     while (fgets(buf, 1024 * 1024 - 1, fp))
     {
-        printf("length = %ld\n", strlen(buf));
+        printf("length = %zu\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));