From: Sterling Hughes Date: Sun, 10 Dec 2000 10:57:46 +0000 (+0000) Subject: For nice looking error output. ;) X-Git-Tag: php-4.0.5RC1~947 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0e42d336a6d163602531236434d28f67fe32455;p=php For nice looking error output. ;) --- diff --git a/ext/sablot/sablot.c b/ext/sablot/sablot.c index 8a83357fa7..8c684dfd27 100644 --- a/ext/sablot/sablot.c +++ b/ext/sablot/sablot.c @@ -1215,6 +1215,7 @@ static MH_ERROR _php_sablot_error(void *userData, SablotHandle p, MH_ERROR code, memcpy(errors->key, fields[0], idx); memcpy(errors->value, fields[0] + idx + 1, len - idx - 1); + errors->key[idx] = '\0'; errors->value[len - idx - 1] = '\0'; errors->next = NULL;