Add more header dependencies.
[git.git] / show-diff.c
index 8a66e59..36afb3c 100644 (file)
@@ -27,8 +27,8 @@ static char *sq_expand(char *src)
        int cnt, c;
        char *cp;
 
-       /* count single quote characters */ 
-       for (cnt = 0, cp = src; *cp; cnt++, cp++)
+       /* count bytes needed to store the quoted string. */ 
+       for (cnt = 1, cp = src; *cp; cnt++, cp++)
                if (*cp == '\'')
                        cnt += 3;