summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/util.c b/util.c
index f36ee4e..2822c89 100644
--- a/util.c
+++ b/util.c
@@ -42,21 +42,3 @@ read_file(char *path, char **output, size_t * read_size)
return 0;
}
-
-char *
-v_strcpy(char *str, size_t len)
-{
- char *new_str;
- size_t new_len;
-
- new_str = (char *) malloc(sizeof(char) * (len + 1));
- if (new_str == NULL)
- return NULL;
-
- new_len = strlcpy(new_str, str, len + 1);
- if (new_len >= len + 1) {
- free(new_str);
- return NULL;
- }
- return new_str;
-}