Error checking memory allocator
+ Version $Id$
*/
/*
- Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+ Copyright (C) 2000-2004 Kern Sibbald and John Walker
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
if ((buf = sm_malloc(fname, lineno, nbytes)) != NULL) {
return buf;
}
- V fprintf(stderr, "\nBoom!!! Memory capacity exceeded.\n");
- V fprintf(stderr, " Requested %u bytes at line %d of %s.\n",
+ V fprintf(stderr, "\nBoom!!! Memory capacity exceeded.\n");
+ V fprintf(stderr, " Requested %u bytes at line %d of %s.\n",
nbytes, lineno, fname);
abort();
/*NOTREACHED*/
if ((buf = malloc(nbytes)) != NULL) {
return buf;
}
- V fprintf(stderr, "\nBoom!!! Memory capacity exceeded.\n");
- V fprintf(stderr, " Requested %u bytes.\n", nbytes);
+ V fprintf(stderr, "\nBoom!!! Memory capacity exceeded.\n");
+ V fprintf(stderr, " Requested %u bytes.\n", nbytes);
abort();
/*NOTREACHED*/
}