diff options
Diffstat (limited to 'user/win32/userinfo.c')
-rw-r--r-- | user/win32/userinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user/win32/userinfo.c b/user/win32/userinfo.c index 12931ade6..c6b5084a5 100644 --- a/user/win32/userinfo.c +++ b/user/win32/userinfo.c @@ -212,11 +212,11 @@ APR_DECLARE(apr_status_t) apr_uid_get(apr_uid_t *uid, apr_gid_t *gid, char *pos; if ((pos = strchr(username, '/'))) { - domain = apr_pstrndup(p, username, pos - username); + domain = apr_pstrmemdup(p, username, pos - username); username = pos + 1; } else if ((pos = strchr(username, '\\'))) { - domain = apr_pstrndup(p, username, pos - username); + domain = apr_pstrmemdup(p, username, pos - username); username = pos + 1; } else { |