no change in behaviour as sizeof(char **) is the same as sizeof(char *)
ok otto@ guenther@
-/* $OpenBSD: path.c,v 1.5 2015/01/22 05:48:17 deraadt Exp $ */
+/* $OpenBSD: path.c,v 1.6 2015/05/22 13:48:25 jsg Exp $ */
/*
* Copyright (c) 2013 Kurt Miller <kurt@intricatesoftware.com>
/* one more for NULL entry */
count++;
- retval = _dl_reallocarray(NULL, count, sizeof(retval));
+ retval = _dl_reallocarray(NULL, count, sizeof(*retval));
if (retval == NULL)
return (NULL);