projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d7901
)
there's no need to copy the string byte by byte, use snprintf instead
author
tsauerbeck
<tsauerbeck>
Fri, 29 Oct 2004 13:50:27 +0000
(13:50 +0000)
committer
tsauerbeck
<tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Oct 2004 13:50:27 +0000
(13:50 +0000)
SVN revision: 12053
legacy/edje/data/src/test.edc
patch
|
blob
|
history
diff --git
a/legacy/edje/data/src/test.edc
b/legacy/edje/data/src/test.edc
index
09b4a17
..
78c6f70
100644
(file)
--- a/
legacy/edje/data/src/test.edc
+++ b/
legacy/edje/data/src/test.edc
@@
-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)