git-svn: trunk@1879
Tomasz Kojm authored on 2006/03/28 08:08:35... | ... |
@@ -304,14 +304,14 @@ void *cli_malloc(size_t size) |
304 | 304 |
|
305 | 305 |
|
306 | 306 |
if(!size || size > MAX_ALLOCATION) { |
307 |
- cli_errmsg("cli_malloc(): Attempt to allocate %d bytes. Please report to bugs@clamav.net\n", size); |
|
307 |
+ cli_errmsg("cli_malloc(): Attempt to allocate %u bytes. Please report to bugs@clamav.net\n", size); |
|
308 | 308 |
return NULL; |
309 | 309 |
} |
310 | 310 |
|
311 | 311 |
alloc = malloc(size); |
312 | 312 |
|
313 | 313 |
if(!alloc) { |
314 |
- cli_errmsg("cli_malloc(): Can't allocate memory (%d bytes).\n", size); |
|
314 |
+ cli_errmsg("cli_malloc(): Can't allocate memory (%u bytes).\n", size); |
|
315 | 315 |
perror("malloc_problem"); |
316 | 316 |
/* _exit(1); */ |
317 | 317 |
return NULL; |
... | ... |
@@ -324,14 +324,14 @@ void *cli_calloc(size_t nmemb, size_t size) |
324 | 324 |
|
325 | 325 |
|
326 | 326 |
if(!size || size > MAX_ALLOCATION) { |
327 |
- cli_errmsg("cli_calloc(): Attempt to allocate %d bytes. Please report to bugs@clamav.net\n", size); |
|
327 |
+ cli_errmsg("cli_calloc(): Attempt to allocate %u bytes. Please report to bugs@clamav.net\n", size); |
|
328 | 328 |
return NULL; |
329 | 329 |
} |
330 | 330 |
|
331 | 331 |
alloc = calloc(nmemb, size); |
332 | 332 |
|
333 | 333 |
if(!alloc) { |
334 |
- cli_errmsg("cli_calloc(): Can't allocate memory (%d bytes).\n", nmemb * size); |
|
334 |
+ cli_errmsg("cli_calloc(): Can't allocate memory (%u bytes).\n", nmemb * size); |
|
335 | 335 |
perror("calloc_problem"); |
336 | 336 |
/* _exit(1); */ |
337 | 337 |
return NULL; |
... | ... |
@@ -344,14 +344,14 @@ void *cli_realloc(void *ptr, size_t size) |
344 | 344 |
|
345 | 345 |
|
346 | 346 |
if(!size || size > MAX_ALLOCATION) { |
347 |
- cli_errmsg("cli_realloc(): Attempt to allocate %d bytes. Please report to bugs@clamav.net\n", size); |
|
347 |
+ cli_errmsg("cli_realloc(): Attempt to allocate %u bytes. Please report to bugs@clamav.net\n", size); |
|
348 | 348 |
return NULL; |
349 | 349 |
} |
350 | 350 |
|
351 | 351 |
alloc = realloc(ptr, size); |
352 | 352 |
|
353 | 353 |
if(!alloc) { |
354 |
- cli_errmsg("cli_realloc(): Can't re-allocate memory to %d byte.\n", size); |
|
354 |
+ cli_errmsg("cli_realloc(): Can't re-allocate memory to %u byte.\n", size); |
|
355 | 355 |
perror("realloc_problem"); |
356 | 356 |
return NULL; |
357 | 357 |
} else return alloc; |