forked from enlightenment/efl
there's no need to copy the string byte by byte, use snprintf instead
SVN revision: 12053
This commit is contained in:
parent
f5d79011d1
commit
25d310a49b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue