mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
from an idea by Yann Ylavic <ylavic.dev@gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1533169 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -102,7 +102,7 @@ PROXY_DECLARE(apr_status_t) ap_proxy_strncpy(char *dst, const char *src,
|
||||
thelen = thenil - dst;
|
||||
/* Assume the typical case is smaller copying into bigger
|
||||
so we have a fast return */
|
||||
if ((thelen < dlen-1) || ((strlen(src)) == thelen)) {
|
||||
if ((thelen < dlen-1) || (src[thelen] == '\0') {
|
||||
return APR_SUCCESS;
|
||||
}
|
||||
/* XXX: APR_ENOSPACE would be better */
|
||||
|
Reference in New Issue
Block a user