From 25d310a49bdc1fe5bb709e82e452f8512e91ed00 Mon Sep 17 00:00:00 2001 From: tsauerbeck Date: Fri, 29 Oct 2004 13:50:27 +0000 Subject: [PATCH] there's no need to copy the string byte by byte, use snprintf instead SVN revision: 12053 --- legacy/edje/data/src/test.edc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/legacy/edje/data/src/test.edc b/legacy/edje/data/src/test.edc index 09b4a17a61..78c6f7030b 100644 --- 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)