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/pkt.c | |
parent | c85e08b1bda30c1a7e0a6e804f81665047fd8005 (diff) | |
download | libgit2-84dd3820d41046d35cb8b3bf65e67d0eb7e68f6c.tar.gz |
posix: Properly handle `snprintf` in all platforms
Diffstat (limited to 'src/pkt.c')
-rw-r--r-- | src/pkt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -33,6 +33,7 @@ #include "pkt.h" #include "util.h" #include "netops.h" +#include "posix.h" #include <ctype.h> @@ -285,7 +286,7 @@ static int send_want_with_caps(git_remote_head *head, git_transport_caps *caps, git_oid_fmt(oid, &head->oid); memset(cmd, 0x0, len + 1); - snprintf(cmd, len + 1, "%04xwant %s%c%s\n", len, oid, 0, capstr); + p_snprintf(cmd, len + 1, "%04xwant %s%c%s\n", len, oid, 0, capstr); error = gitno_send(fd, cmd, len, 0); free(cmd); return error; |