mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
dbaa646d12
commit
dbf4119553
19 changed files with 91 additions and 68 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue