]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
fixed two printf()s of size_t in unistr_dump()
authormortenp <none@none>
Mon, 4 Sep 2006 19:25:51 +0000 (05:25 +1000)
committermortenp <none@none>
Mon, 4 Sep 2006 19:25:51 +0000 (05:25 +1000)
src/unistr.c

index 8d5b77b775dc05f7153513760cc0802e2f77d590..87aac6c3344088b635c996bb6c8fbd35435c01e5 100644 (file)
@@ -185,8 +185,8 @@ void unistr_dump(unistr *str)
        unsigned int i;
 
        printf("unistr_dump(%p)\n", (void *)str);
-       printf(" ->len = %d\n", str->len);
-       printf(" ->alloc_len = %d\n", str->alloc_len);
+       printf(" ->len = %lu\n", (unsigned long)str->len);
+       printf(" ->alloc_len = %lu\n", (unsigned long)str->alloc_len);
        printf(" ->chars [ ");
        for (i=0; i<str->len; i++) {
                if ((str->chars[i] <= 0x7F) && (str->chars[i] != '\n')) {