[uim-commit] r307 - trunk/uim

ekato@freedesktop.org ekato@freedesktop.org
Sun Jan 16 18:22:15 PST 2005


Author: ekato
Date: 2005-01-16 18:22:12 -0800 (Sun, 16 Jan 2005)
New Revision: 307

Modified:
   trunk/uim/uim-ipc.c
Log:
* uim/uim-ipc.c (uim_ipc_open_command_with_option) : Fix to
  terminate argument for execvp with NULL pointer even when
  the string contains more than 8 options.


Modified: trunk/uim/uim-ipc.c
===================================================================
--- trunk/uim/uim-ipc.c	2005-01-16 11:36:47 UTC (rev 306)
+++ trunk/uim/uim-ipc.c	2005-01-17 02:22:12 UTC (rev 307)
@@ -191,7 +191,7 @@
       p = (char *)option;
       for (ap = &argv[1]; (*ap = strsep(&p, " ")) != NULL;) {
 	if (**ap != '\0')
-	  if (++ap >= &argv[10])
+	  if (++ap >= &argv[9])
 	    break;
       }
       *ap = NULL;



More information about the Uim-commit mailing list