summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common.c1
-rw-r--r--src/restore.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c
index 80d8256..d31c558 100644
--- a/src/common.c
+++ b/src/common.c
@@ -85,7 +85,6 @@ static thread_once_t init_once = THREAD_ONCE_INIT;
static void _log_init(void)
{
- printf("******** _log_init ********\n");
mutex_init(&log_mutex);
}
diff --git a/src/restore.c b/src/restore.c
index 5c6011f..d3828f9 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1235,7 +1235,7 @@ static size_t _curl_header_callback(char* buffer, size_t size, size_t nitems, vo
key[i] = '\0';
i++;
while (i < len && buffer[i] == ' ' || buffer[i] == '\t') i++;
- val = malloc(len-i);
+ val = malloc(len-i+1);
strncpy(val, buffer+i, len-i);
val[len-i] = '\0';
break;