str - fixing internal strndup implemenatation to use the internal strnlen implementation

remotes/push_mirror/bug11858-pull-requests
Mickey Sola 8 years ago
parent 47a544dc07
commit 6eb84c277a
  1. 2
      libclamav/str.c

@ -479,7 +479,7 @@ char *cli_strndup(const char *s, size_t n)
return NULL;
}
len = strnlen(s, n);
len = cli_strnlen(s, n);
alloc = malloc(len+1);
if(!alloc) {

Loading…
Cancel
Save