Big pile of changes to support a 'conf UI' in the select menu; can now hide/show...
[pandora-libraries.git] / lib / pnd_conf.c
index 6b8f644..88d0c46 100644 (file)
@@ -300,7 +300,7 @@ char *pnd_conf_set_char ( pnd_conf_handle c, char *key, char *v ) {
   }
 
   // add the new node
-  char *nv = pnd_box_allocinsert ( c, key, strlen ( v ) );
+  char *nv = pnd_box_allocinsert ( c, key, strlen ( v ) + 1 );
 
   if ( nv ) {
     strcpy ( nv, v );