From 61477ba75dd35655f38b3f280cd20cbe43b46d5a Mon Sep 17 00:00:00 2001 From: Nathan Vance Date: Wed, 29 Apr 2015 21:04:29 -0400 Subject: Fixed bug causing array content to be overwritten --- util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index 20e8290..fcb67d2 100644 --- a/util.c +++ b/util.c @@ -28,6 +28,12 @@ char* get_chararray(int size) return ret; } +void arraycpy(int *from, int *to, int len) +{ + int i; + for(i = 0; i < len; i++) to[i] = from[i]; +} + /* Concatinates a and b and returns a different string. Only use when returned string can be recycled. */ char* cat(char a[], char b[]) { -- cgit