diff options
Diffstat (limited to 'usr.bin/rs')
-rw-r--r-- | usr.bin/rs/rs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rs/rs.c b/usr.bin/rs/rs.c index 3c6ed1a4a72..f29f580f0d8 100644 --- a/usr.bin/rs/rs.c +++ b/usr.bin/rs/rs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rs.c,v 1.23 2013/11/15 15:47:53 millert Exp $ */ +/* $OpenBSD: rs.c,v 1.24 2014/10/08 04:07:24 doug Exp $ */ /*- * Copyright (c) 1993 @@ -340,7 +340,7 @@ getptrs(char **sp) int newsize; newsize = allocsize * 2; - p = realloc(elem, newsize * sizeof(char *)); + p = reallocarray(elem, newsize, sizeof(char *)); if (p == NULL) err(1, "no memory"); |