t9117: test specifying full url to git svn init -T
[gitweb.git] / strbuf.c
index bab316dda8f4946efb9a908f17c98b4db3d21e98..f60e2ee72ba86cbd6c66622366af4a7faf25e1a0 100644 (file)
--- a/strbuf.c
+++ b/strbuf.c
@@ -718,7 +718,7 @@ char *xstrdup_tolower(const char *string)
        size_t len, i;
 
        len = strlen(string);
-       result = xmalloc(len + 1);
+       result = xmallocz(len);
        for (i = 0; i < len; i++)
                result[i] = tolower(string[i]);
        result[i] = '\0';