X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fpnd_conf.c;h=9c4f31fc7369c23d9848f04935df587b1fc322fd;hb=8290d9ca651c95ff7f5108b7019987162293287c;hp=6b8f644e3769954dd2a04e7ad8534b4d0871b2d7;hpb=28d8c4a1319ed2535acffccd08eb3afb31b86137;p=pandora-libraries.git diff --git a/lib/pnd_conf.c b/lib/pnd_conf.c index 6b8f644..9c4f31f 100644 --- a/lib/pnd_conf.c +++ b/lib/pnd_conf.c @@ -233,7 +233,7 @@ pnd_conf_handle pnd_conf_fetch_by_path ( char *fullpath ) { } // key or key/value? } // section or key/value line? - + } // while // clean up a trifle @@ -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 );