From f13dbca68d16b6598066a8d4bf401fd3e1f58bff Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 16 Apr 2015 17:25:42 +0300 Subject: Fix printf format in regex malloc wrappers. --- regex_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regex_internal.h') diff --git a/regex_internal.h b/regex_internal.h index 6a870f23..327bd7e0 100644 --- a/regex_internal.h +++ b/regex_internal.h @@ -479,7 +479,7 @@ static void * test_malloc(size_t count, const char *file, size_t line) { if (count == 0) { - fprintf(stderr, "%s:%d: allocation of zero bytes\n", + fprintf(stderr, "%s:%lu: allocation of zero bytes\n", file, line); exit(1); } @@ -490,7 +490,7 @@ static void * test_realloc(void *p, size_t count, const char *file, size_t line) { if (count == 0) { - fprintf(stderr, "%s:%d: reallocation of zero bytes\n", + fprintf(stderr, "%s:%lu: reallocation of zero bytes\n", file, line); exit(1); } -- cgit v1.2.3