bzero() is deprecated, use memset().

pull/15/head
Michał Górny 2012-05-07 10:26:44 +02:00
parent c203beb902
commit 3099663a4c
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ pkg_argv_split(const char *src, int *argc, char ***argv)
src_iter = src; src_iter = src;
dst_iter = buf; dst_iter = buf;
bzero(buf, strlen(src) + 1); memset(buf, 0, strlen(src) + 1);
*argv = calloc(sizeof (void *), argv_size); *argv = calloc(sizeof (void *), argv_size);
(*argv)[argc_count] = dst_iter; (*argv)[argc_count] = dst_iter;