Use size_t as len type for xSnprintf

Like the C snprintf function
This commit is contained in:
Christian Göttsche
2020-11-24 18:14:56 +01:00
committed by Benny Baumann
parent 3d15ba5197
commit d9224c66a4
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ ATTR_FORMAT(printf, 2, 3)
int xAsprintf(char** strp, const char* fmt, ...);
ATTR_FORMAT(printf, 3, 4)
int xSnprintf(char* buf, int len, const char* fmt, ...);
int xSnprintf(char* buf, size_t len, const char* fmt, ...);
char* xStrdup(const char* str) ATTR_NONNULL;