diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-21 02:07:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-21 02:07:33 +0000 |
commit | b6541c8fb2bf7a1d6480b19e3db8264680805b17 (patch) | |
tree | b0a496dfa7335b609f85fa1ae5ec0d4a7ea3a678 /usr.sbin/tcpdump/savestr.c | |
parent | cacb390022ee8379c88381aa734bb8bcf1466b28 (diff) |
since stdlib.h is in scope, don't cast.... you know the drill.
no sneakiness detected by krw
Diffstat (limited to 'usr.sbin/tcpdump/savestr.c')
-rw-r--r-- | usr.sbin/tcpdump/savestr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/savestr.c b/usr.sbin/tcpdump/savestr.c index b0fc6df6fc0..2d8a253221f 100644 --- a/usr.sbin/tcpdump/savestr.c +++ b/usr.sbin/tcpdump/savestr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: savestr.c,v 1.8 2015/04/05 17:02:57 guenther Exp $ */ +/* $OpenBSD: savestr.c,v 1.9 2015/08/21 02:07:32 deraadt Exp $ */ /* * Copyright (c) 1997 @@ -47,7 +47,7 @@ savestr(register const char *str) strsize = 1024; if (strsize < size) strsize = size; - strptr = (char *)malloc(strsize); + strptr = malloc(strsize); if (strptr == NULL) { fprintf(stderr, "savestr: malloc\n"); exit(1); |