} // key or key/value?
} // section or key/value line?
-
+
} // while
// clean up a trifle
}
// 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 );