Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
http-push: replace strcat with xsnprintf
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index f649e81f1107722f4c7d051201920ae2a0e7846a..348b9dcc1ccd81d5cdaebeca6f801b4aa9701f25 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-744,6
+744,9
@@
static inline size_t xsize_t(off_t len)
return (size_t)len;
}
+__attribute__((format (printf, 3, 4)))
+extern int xsnprintf(char *dst, size_t max, const char *fmt, ...);
+
/* in ctype.c, for kwset users */
extern const unsigned char tolower_trans_tbl[256];