Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Implement safe_strncpy() as strlcpy() and use it more.
[gitweb.git]
/
builtin-log.c
diff --git
a/builtin-log.c
b/builtin-log.c
index 29a885121dd81f1e6288835d12374acc19a751f4..5b0ea28346ece27c37a3036660dc87e456fb9a13 100644
(file)
--- a/
builtin-log.c
+++ b/
builtin-log.c
@@
-112,7
+112,7
@@
static void reopen_stdout(struct commit *commit, int nr, int keep_subject)
int len = 0;
if (output_directory) {
- strncpy(filename, output_directory, 1010);
+ s
afe_s
trncpy(filename, output_directory, 1010);
len = strlen(filename);
if (filename[len - 1] != '/')
filename[len++] = '/';