diff options
-rw-r--r-- | contrib/cvs/src/server.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/cvs/src/server.c b/contrib/cvs/src/server.c index 53704625..5d4ffbc 100644 --- a/contrib/cvs/src/server.c +++ b/contrib/cvs/src/server.c @@ -4719,11 +4719,12 @@ check_repository_password (username, password, repository, host_user_ptr) if (found_it) { char *found_password, *host_user_tmp = NULL; + char *linebufp = linebuf; - strtok (linebuf, ":"); - found_password = strtok (NULL, ": \n"); + strsep (&linebufp, ":"); + found_password = strsep (&linebufp, ": \n"); if (found_password) - host_user_tmp = strtok (NULL, ": \n"); + host_user_tmp = strsep (&linebufp, ": \n"); if (host_user_tmp == NULL) host_user_tmp = username; |