aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/charConv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charConv.c b/src/charConv.c
index 636a1e066..cb8db75c2 100644
--- a/src/charConv.c
+++ b/src/charConv.c
@@ -57,7 +57,7 @@ char * convStrDup(char * string) {
size_t inleft = strlen(string);
char * ret;
size_t outleft;
- int retlen = 0;
+ size_t retlen = 0;
size_t err;
char * bufferPtr;
@@ -76,7 +76,7 @@ char * convStrDup(char * string) {
}
ret = realloc(ret,retlen+BUFFER_SIZE-outleft+1);
- strncpy(&(ret[retlen]),buffer,BUFFER_SIZE-outleft);
+ memcpy(&(ret[retlen]),buffer,BUFFER_SIZE-outleft);
retlen+=BUFFER_SIZE-outleft;
ret[retlen] = '\0';
}