git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6542 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2011-07-19 18:31:10 +00:00
parent 14a99e9039
commit 0355ac8bc2
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ void *Memory::smalloc(bigint nbytes, const char *name)
void *ptr = malloc(nbytes);
if (ptr == NULL) {
char str[128];
sprintf(str,"Failed to allocate " BIGINT_FORMAT "bytes for array %s",
sprintf(str,"Failed to allocate " BIGINT_FORMAT " bytes for array %s",
nbytes,name);
error->one(str);
}
@ -57,7 +57,7 @@ void *Memory::srealloc(void *ptr, bigint nbytes, const char *name)
ptr = realloc(ptr,nbytes);
if (ptr == NULL) {
char str[128];
sprintf(str,"Failed to reallocate " BIGINT_FORMAT "bytes for array %s",
sprintf(str,"Failed to reallocate " BIGINT_FORMAT " bytes for array %s",
nbytes,name);
error->one(str);
}