Free correct value

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-07-24 13:28:01 +00:00
parent 92296aef1a
commit a6a395487a

View file

@ -3728,15 +3728,17 @@ donames()
}
else
{
uptr p = b;
printf("Registered names are -\n");
while (num-- > 0)
{
char buf[256];
memcpy(buf, &b[2], b[0]);
buf[b[0]] = '\0';
memcpy(buf, &p[2], p[0]);
buf[p[0]] = '\0';
printf("%s\n", buf);
b += 2 + b[0];
p += 2 + p[0];
}
}
free(b);