aboutsummaryrefslogtreecommitdiff
path: root/src/interp.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-11-24 18:44:44 -0500
committerFranklin Wei <git@fwei.tk>2015-11-24 18:44:44 -0500
commit3c13f12ac8279ddccf2a20fbc072d6b918ea2096 (patch)
tree6cc7f11e1d6029fdbd84ffe1179c870057b76af5 /src/interp.c
parentc7c1bd7641581e2a0b84dcecdab61ed7c43268e9 (diff)
downloadducky-3c13f12ac8279ddccf2a20fbc072d6b918ea2096.zip
ducky-3c13f12ac8279ddccf2a20fbc072d6b918ea2096.tar.gz
ducky-3c13f12ac8279ddccf2a20fbc072d6b918ea2096.tar.bz2
ducky-3c13f12ac8279ddccf2a20fbc072d6b918ea2096.tar.xz
remove BSD dependency
Diffstat (limited to 'src/interp.c')
-rw-r--r--src/interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interp.c b/src/interp.c
index 8ecf630..c49d13e 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -105,7 +105,7 @@ static struct varnode_t *lookup_var(const char *name)
struct varnode_t *new = malloc(sizeof(struct varnode_t));
memset(new, 0, sizeof(struct varnode_t));
- strlcpy(new->name, name, sizeof(new->name));
+ strncpy(new->name, name, sizeof(new->name));
new->val = 0;
new->constant = false;
new->next = NULL;