diff options
Diffstat (limited to 'src/tool_dirhie.c')
-rw-r--r-- | src/tool_dirhie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_dirhie.c b/src/tool_dirhie.c index 24bbc4906..06b3c03e8 100644 --- a/src/tool_dirhie.c +++ b/src/tool_dirhie.c @@ -131,13 +131,13 @@ CURLcode create_dir_hierarchy(const char *outfile, FILE *errors) if(tempdir2 != NULL) { size_t dlen = strlen(dirbuildup); if(dlen) - snprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); + msnprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); else { if(outdup == tempdir) /* the output string doesn't start with a separator */ strcpy(dirbuildup, tempdir); else - snprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); + msnprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); } if((-1 == mkdir(dirbuildup, (mode_t)0000750)) && (errno != EEXIST)) { show_dir_errno(errors, dirbuildup); |