summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-25 22:55:21 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-25 22:56:13 +0100
commited2b3a38ec05c566c645dc2aabfd513edff8d63b (patch)
tree388cf0c5d6a425f5d7f86783e0c67e930f94c6a4 /util.c
parent70431dcb67e33bd466d03fb41e5a90ba301127a4 (diff)
Plugins
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 9d9c5d3..5116347 100644
--- a/util.c
+++ b/util.c
@@ -10,14 +10,14 @@
#include "util.h"
-char* copy_buf(char *buf,int len){
+char* copy_buf(const char *buf,int len){
char *dst=malloc(len+1,char);
memcpy(dst,buf,len);
dst[len]='\0';
return dst;
}
-char* copy_str(char *str){
+char* copy_str(const char *str){
return copy_buf(str,strlen(str));
}