Documentation: wording fixes in the user manual and glossary
[gitweb.git] / remote-testsvn.c
index 078f1ffa417092e1c783b16d782b2aa69417a591..6be55cbe9ed6cf4979ac0971c30f127c9667ab2e 100644 (file)
@@ -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)) {