[uim-commit] r940 - trunk/uim

ekato at freedesktop.org ekato at freedesktop.org
Wed Jul 6 03:36:32 PDT 2005


Author: ekato
Date: 2005-07-06 03:35:51 -0700 (Wed, 06 Jul 2005)
New Revision: 940

Modified:
   trunk/uim/uim-module-manager.c
Log:
* uim/uim-module-manager.c (concat) : Add space for terminating
  '\0'.


Modified: trunk/uim/uim-module-manager.c
===================================================================
--- trunk/uim/uim-module-manager.c	2005-07-06 10:13:46 UTC (rev 939)
+++ trunk/uim/uim-module-manager.c	2005-07-06 10:35:51 UTC (rev 940)
@@ -56,7 +56,7 @@
   char *dest;
   if(!a || !b)
     return NULL;
-  len = strlen(a)+strlen(b);
+  len = strlen(a) + strlen(b) + 1;
   dest = malloc(len);
   dest = strcpy(dest, a);
   strcat(dest, b);



More information about the uim-commit mailing list