Skip to content

Commit 9c0d05f

Browse files
author
Marc Stern
authored
Update re_operators.c
1 parent 3dc5ff5 commit 9c0d05f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apache2/re_operators.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,10 +1535,10 @@ static const char *gsb_replace_tpath(apr_pool_t *pool, const char *domain, int l
15351535
url = apr_palloc(pool, len + 1);
15361536
data = apr_palloc(pool, len + 1);
15371537

1538-
memset(data, 0, len+1);
1539-
memset(url, 0, len+1);
1540-
1538+
data[0] = '\0';
1539+
15411540
memcpy(url, domain, len);
1541+
url[len] = 0;
15421542

15431543
while(( pos = strstr(url , "/./" )) != NULL) {
15441544
match = 1;

0 commit comments

Comments
 (0)