more bsd tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32485 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-03-07 15:34:06 +00:00
parent dbaa646d12
commit dbf4119553
19 changed files with 91 additions and 68 deletions

View file

@ -494,7 +494,7 @@ _GSDebugAllocationList(BOOL difference)
}
if (val != 0)
{
pos += 11 + strlen(class_getName(the_table[i].class));
pos += 22 + strlen(class_getName(the_table[i].class));
}
}
if (pos == 0)
@ -540,7 +540,8 @@ _GSDebugAllocationList(BOOL difference)
if (val != 0)
{
sprintf(&buf[pos], "%d\t%s\n", val, class_getName(the_table[i].class));
snprintf(&buf[pos], siz - pos, "%d\t%s\n",
val, class_getName(the_table[i].class));
pos += strlen(&buf[pos]);
}
}
@ -588,7 +589,7 @@ _GSDebugAllocationListAll(void)
if (val != 0)
{
pos += 11 + strlen(class_getName(the_table[i].class));
pos += 22 + strlen(class_getName(the_table[i].class));
}
}
if (pos == 0)
@ -620,7 +621,8 @@ _GSDebugAllocationListAll(void)
if (val != 0)
{
sprintf(&buf[pos], "%d\t%s\n", val, class_getName(the_table[i].class));
snprintf(&buf[pos], siz - pos, "%d\t%s\n",
val, class_getName(the_table[i].class));
pos += strlen(&buf[pos]);
}
}