diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-12-08 20:20:03 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-12-08 20:20:03 (EST) |
commit | 2fdb3fc0b67757afd6fe7a244b6e14d2a546af0e (patch) | |
tree | a5e28a26a07e429a753f29945cc8ba9c4f6c9884 /libopkg/sprintf_alloc.c | |
parent | e4a49209222ea7385f64e9336425df115a3ea1a3 (diff) |
Merge commit 'grg' into HEAD
git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/sprintf_alloc.c')
-rw-r--r-- | libopkg/sprintf_alloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libopkg/sprintf_alloc.c b/libopkg/sprintf_alloc.c index 7989493..2e3200b 100644 --- a/libopkg/sprintf_alloc.c +++ b/libopkg/sprintf_alloc.c @@ -24,14 +24,15 @@ int sprintf_alloc(char **str, const char *fmt, ...) { va_list ap; - int n, size = 100; + int n; + unsigned size = 100; if (!str) { - fprintf(stderr, "Null string pointer passed to sprintf_alloc\n"); + opkg_msg(ERROR, "Internal error: str=NULL.\n"); return -1; } if (!fmt) { - fprintf(stderr, "Null fmt string passed to sprintf_alloc\n"); + opkg_msg(ERROR, "Internal error: fmt=NULL.\n"); return -1; } |