The return value of snprintf is int not size_t.

This commit is contained in:
Tobias Brunner
2010-03-03 17:34:06 +01:00
parent d02308502f
commit fc1afcc89e
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ void *memstr(const void *haystack, const char *needle, size_t n)
*/
bool mkdir_p(const char *path, mode_t mode)
{
size_t len;
int len;
char *pos, full[PATH_MAX];
pos = full;
if (!path || *path == '\0')