ecore/examples: Fix build of ecore_exe example.
authorantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Jul 2012 18:23:38 +0000 (18:23 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Jul 2012 18:23:38 +0000 (18:23 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@74258 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/examples/ecore_exe_example.c

index 42beddb..8d0dedc 100644 (file)
@@ -21,7 +21,7 @@ _msg_from_child_handler(void *data, int type, void *event)
      }
    
    strncpy(msg, dataFromProcess->data, dataFromProcess->size);
-   msg[dataFromProcess->size = 0;
+   msg[dataFromProcess->size] = 0;
        
    if (strcmp(msg, "quit") == 0)
      {