X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=blobdiff_plain;f=lib%2Fpnd_conf.c;h=88d0c46331edfef5cf46d6aedd54c44821d6cb49;hp=6b8f644e3769954dd2a04e7ad8534b4d0871b2d7;hb=2b27077cfb520fc5ad87b9bddf255f359a760b89;hpb=ac2d2f889b10a4c02419518a730296775a8427cd diff --git a/lib/pnd_conf.c b/lib/pnd_conf.c index 6b8f644..88d0c46 100644 --- a/lib/pnd_conf.c +++ b/lib/pnd_conf.c @@ -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 );