Skip to content

Commit dabc39f

Browse files
committed
updated
1 parent 59825d9 commit dabc39f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/dav/main/util.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,7 @@ DAV_DECLARE(dav_error *) dav_parse_locktoken(apr_pool_t *p,
616616
"Malformed Lock-Token");
617617
}
618618

619-
token = apr_pmemdup(p, input + 1, len - 2);
620-
token[len - 2] = '\0';
619+
token = apr_pstrememdup(p, input + 1, len - 2);
621620

622621
if (*token == '\0') {
623622
return dav_new_error(p, HTTP_BAD_REQUEST, 0, 0,

0 commit comments

Comments
 (0)