Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/edje
Dir : e17/libs/edje/data/src
Modified Files:
test.edc
Log Message:
there's no need to copy the string byte by byte, use snprintf instead
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/data/src/test.edc,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- test.edc 14 Jul 2004 07:57:34 -0000 1.21
+++ test.edc 29 Oct 2004 13:50:27 -0000 1.22
@@ -80,11 +80,7 @@
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)
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs