From 9052035548284362b55576c5605ddc12ed45f926 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 7 Nov 2013 13:06:06 +0900 Subject: Fix stupid off by one error This was missing the space for the \0 character so the paths were one byte short. Signed-off-by: Dirk Hohndel --- uemis-downloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2