projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement safe_strncpy() as strlcpy() and use it more.
[git.git]
/
cache.h
diff --git
a/cache.h
b/cache.h
index
d5d7fe4
..
f630cf4
100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-210,7
+210,7
@@
int git_mkstemp(char *path, size_t n, const char *template);
int adjust_shared_perm(const char *path);
int safe_create_leading_directories(char *path);
int adjust_shared_perm(const char *path);
int safe_create_leading_directories(char *path);
-
char *
safe_strncpy(char *, const char *, size_t);
+
size_t
safe_strncpy(char *, const char *, size_t);
char *enter_repo(char *path, int strict);
/* Read and unpack a sha1 file into memory, write memory to a sha1 file */
char *enter_repo(char *path, int strict);
/* Read and unpack a sha1 file into memory, write memory to a sha1 file */