diff options
author | Peter Eriksen <s022018@student.dtu.dk> | 2006-06-11 14:03:28 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-16 22:45:12 -0700 |
commit | bfbd0bb6ecbbbf75a5caaff6afaf5a6af8fa518e (patch) | |
tree | 52f36804599a41eafa3a020f06dbe118c6f652f9 /cache.h | |
parent | 5996ca0836e21ab4e6be0a16a615eff965f18b8b (diff) | |
download | git-bfbd0bb6ecbbbf75a5caaff6afaf5a6af8fa518e.tar.gz git-bfbd0bb6ecbbbf75a5caaff6afaf5a6af8fa518e.tar.xz |
Implement safe_strncpy() as strlcpy() and use it more.
Signed-off-by: Peter Eriksen <s022018@student.dtu.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); -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 */ |