projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update gitweb README: gitweb is now included with git
[git.git]
/
config.c
diff --git
a/config.c
b/config.c
index
c474970
..
984c75f
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-280,17
+280,17
@@
int git_default_config(const char *var, const char *value)
}
if (!strcmp(var, "user.name")) {
}
if (!strcmp(var, "user.name")) {
- strncpy(git_default_name, value, sizeof(git_default_name));
+ s
afe_s
trncpy(git_default_name, value, sizeof(git_default_name));
return 0;
}
if (!strcmp(var, "user.email")) {
return 0;
}
if (!strcmp(var, "user.email")) {
- strncpy(git_default_email, value, sizeof(git_default_email));
+ s
afe_s
trncpy(git_default_email, value, sizeof(git_default_email));
return 0;
}
if (!strcmp(var, "i18n.commitencoding")) {
return 0;
}
if (!strcmp(var, "i18n.commitencoding")) {
- strncpy(git_commit_encoding, value, sizeof(git_commit_encoding));
+ s
afe_s
trncpy(git_commit_encoding, value, sizeof(git_commit_encoding));
return 0;
}
return 0;
}