Unidiff1 files changed, 1 insertions, 0 deletions
|
diff --git a/cache.c b/cache.c index 7860fc7..89f7ecd 100644 --- a/ cache.c+++ b/ cache.c |
|
@@ -1,21 +1,22 @@ |
1 | /* cache.c: cache management |
1 | /* cache.c: cache management |
2 | * |
2 | * |
3 | * Copyright (C) 2006 Lars Hjemli |
3 | * Copyright (C) 2006 Lars Hjemli |
4 | * |
4 | * |
5 | * Licensed under GNU General Public License v2 |
5 | * Licensed under GNU General Public License v2 |
6 | * (see COPYING for full license text) |
6 | * (see COPYING for full license text) |
7 | */ |
7 | */ |
8 | |
8 | |
9 | #include "cgit.h" |
9 | #include "cgit.h" |
| |
10 | #include "cache.h" |
10 | |
11 | |
11 | const int NOLOCK = -1; |
12 | const int NOLOCK = -1; |
12 | |
13 | |
13 | char *cache_safe_filename(const char *unsafe) |
14 | char *cache_safe_filename(const char *unsafe) |
14 | { |
15 | { |
15 | static char buf[4][PATH_MAX]; |
16 | static char buf[4][PATH_MAX]; |
16 | static int bufidx; |
17 | static int bufidx; |
17 | char *s; |
18 | char *s; |
18 | char c; |
19 | char c; |
19 | |
20 | |
20 | bufidx++; |
21 | bufidx++; |
21 | bufidx &= 3; |
22 | bufidx &= 3; |
|