Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Split up read-cache.c into more logical clumps.
[gitweb.git]
/
show-diff.c
diff --git
a/show-diff.c
b/show-diff.c
index 8a66e59cf5f6e05dd5944e479f95a2a12a6ccf95..36afb3cc91305c35d2d811be61b308c14fb1a63d 100644
(file)
--- a/
show-diff.c
+++ b/
show-diff.c
@@
-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;