diff options
author | Andi Gutmans <andi@php.net> | 1999-09-15 05:44:59 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 1999-09-15 05:44:59 +0000 |
commit | 36101a55ade279df49aed987da6f77b6de5476da (patch) | |
tree | fc6fee1023f472a16d1fc8d210775e8b0763626e /ext/ereg | |
parent | 100148168ab400ec7d0ccc16f2d72c06b6170570 (diff) | |
download | php-git-36101a55ade279df49aed987da6f77b6de5476da.tar.gz |
- Leave this for now.
Diffstat (limited to 'ext/ereg')
-rw-r--r-- | ext/ereg/regex/regerror.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/ereg/regex/regerror.c b/ext/ereg/regex/regerror.c index 319f116896..12edd4e164 100644 --- a/ext/ereg/regex/regerror.c +++ b/ext/ereg/regex/regerror.c @@ -94,7 +94,8 @@ size_t errbuf_size; if (errbuf_size > len) (void) strcpy(errbuf, s); else { - (void) strlcpy(errbuf, s, errbuf_size); + (void) strncpy(errbuf, s, errbuf_size-1); + errbuf[errbuf_size-1] = '\0'; } } |