diff options
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 37cadf349..b0cb5f1a7 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -156,7 +156,7 @@ static int number_of_file(char *path) static char *build_filename(const char *path, const char *name) { - int len = strlen(path) + strlen(name) + 1; + int len = strlen(path) + strlen(name) + 2; char *buf = malloc(len); #if WIN32 snprintf(buf, len, "%s\%s", path, name); |