projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[patch] git: fix overflow in update-cache.c
[git.git]
/
update-cache.c
diff --git
a/update-cache.c
b/update-cache.c
index
d7caed6
..
3b44fe1
100644
(file)
--- a/
update-cache.c
+++ b/
update-cache.c
@@
-131,7
+131,7
@@
static int compare_data(struct cache_entry *ce, unsigned long expected_size)
if (fd >= 0) {
void *buffer;
unsigned long size;
- char type[
1
0];
+ char type[
2
0];
buffer = read_sha1_file(ce->sha1, type, &size);
if (buffer) {