diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:13:51 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:35:28 +0200 |
| commit | 84dd3820d41046d35cb8b3bf65e67d0eb7e68f6c (patch) | |
| tree | 9a9f028446162d5effe4f5458f60c9bdb628f81a /src/config.c | |
| parent | c85e08b1bda30c1a7e0a6e804f81665047fd8005 (diff) | |
| download | libgit2-84dd3820d41046d35cb8b3bf65e67d0eb7e68f6c.tar.gz | |
posix: Properly handle `snprintf` in all platforms
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index c48376f7c..771250731 100644 --- a/src/config.c +++ b/src/config.c @@ -179,7 +179,7 @@ int git_config_delete(git_config *cfg, const char *name) int git_config_set_long(git_config *cfg, const char *name, long int value) { char str_value[32]; /* All numbers should fit in here */ - snprintf(str_value, sizeof(str_value), "%ld", value); + p_snprintf(str_value, sizeof(str_value), "%ld", value); return git_config_set_string(cfg, name, str_value); } |
