summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 9b96412..7c85b38 100644
--- a/utils.c
+++ b/utils.c
@@ -173,7 +173,7 @@ read_binary_string(char **from, size_t len, const char *max)
}
result = xmalloc(len);
- strncpy(result, *from, len);
+ memcpy(result, *from, len);
*from += len;
return result;
}