there's no need to copy the string byte by byte, use snprintf instead

SVN revision: 12053
This commit is contained in:
tsauerbeck 2004-10-29 13:50:27 +00:00 committed by tsauerbeck
parent f5d79011d1
commit 25d310a49b
1 changed files with 1 additions and 5 deletions

View File

@ -80,11 +80,7 @@ collections
new buf[100];
snprintf(buf, sizeof(buf), "MESSAGE STRING ID: %i", id);
for (new j = 0; j < (sizeof(str) - 1); j++)
{
str[j] = getarg(2, j);
if (str[j] == 0) break;
}
snprintf(str, 100, "%s", getarg(2));
emit(buf, str);
}
else if (type == MSG_INT_SET)