IVISurfaceCreator: fix a wrong surface_id was set
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Tue, 18 Feb 2014 08:09:03 +0000 (17:09 +0900)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Thu, 21 Aug 2014 06:49:29 +0000 (15:49 +0900)
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
ivi-layermanagement-examples/IVISurfaceCreator/src/main.c

index 64a50ef..09aa57b 100644 (file)
@@ -142,7 +142,8 @@ main(int argc, char **argv)
 
     int32_t process_id   = atoi(argv[1]);
     char *  window_title = NULL;
-    display.surface_id   = atoi(argv[3]);
+    char *  endptr = NULL;
+    display.surface_id   = strtoul(argv[3], &endptr, 0);
 
     if (strlen(argv[2]) > 0)
     {