emulator: fix invalid string offset calculation 46/23646/2
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 1 Jul 2014 04:07:19 +0000 (13:07 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 1 Jul 2014 07:42:41 +0000 (00:42 -0700)
Change-Id: I2daa6732390287f5c6f5db6889624f08efe4a25f
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/emulator_options.c

index a6f3045b0b27ee6e896e77b9d412aa4c013bbfa3..2b393f92e9f6611561a71a1f0c7ba4063ff6cc71 100644 (file)
@@ -188,7 +188,7 @@ static char *substitute_variables(char *src)
             g_free(str);
             str = buf;
 
-            i = start_index + strlen(value);
+            i = start_index + strlen(value) - 1;
 
             start_index = end_index = -1;
         }