summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 13:06:06 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 13:06:06 +0900
commit9052035548284362b55576c5605ddc12ed45f926 (patch)
treeb8ef194f06bccca0f2e9dd820567738e866015b7 /uemis-downloader.c
parentabd54cad611fe0fc962ccbbb1f2d0dab24580daf (diff)
downloadsubsurface-9052035548284362b55576c5605ddc12ed45f926.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
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);