Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Rename some test scripts and describe the naming convention
[gitweb.git]
/
convert-cache.c
diff --git
a/convert-cache.c
b/convert-cache.c
index 4d34d2d57ecda02aea70fab008fab32f5a4391b0..93e477ad3b26ab5bb32fe1b638d5ba77075c1d4b 100644
(file)
--- a/
convert-cache.c
+++ b/
convert-cache.c
@@
-99,7
+99,7
@@
static int write_subdirectory(void *buffer, unsigned long size, const char *base
continue;
}
- newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR,
slash - path
, path);
+ newlen += sprintf(new + newlen, "%o %.*s", S_IFDIR,
(int)(slash - path)
, path);
new[newlen++] = 0;
sha1 = (unsigned char *)(new + newlen);
newlen += 20;