diff options
Diffstat (limited to 'remote-testsvn.c')
-rw-r--r-- | remote-testsvn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remote-testsvn.c b/remote-testsvn.c index 078f1ffa41..6be55cbe9e 100644 --- a/remote-testsvn.c +++ b/remote-testsvn.c @@ -78,8 +78,8 @@ static int parse_rev_note(const char *msg, struct rev_note *res) size_t len; while (*msg) { - end = strchr(msg, '\n'); - len = end ? end - msg : strlen(msg); + end = strchrnul(msg, '\n'); + len = end - msg; key = "Revision-number: "; if (starts_with(msg, key)) { |