diff options
author | 2005-03-12 00:02:07 +0000 | |
---|---|---|
committer | 2005-03-12 00:02:07 +0000 | |
commit | c518d90c7a4f93bffbab3165fab3c4067ede3b17 (patch) | |
tree | 909b995995db1df0a444861acc1f1fbae9ceb9bc | |
parent | Some additional cards based on Philips radios which should work. (diff) | |
download | wireguard-openbsd-c518d90c7a4f93bffbab3165fab3c4067ede3b17.tar.xz wireguard-openbsd-c518d90c7a4f93bffbab3165fab3c4067ede3b17.zip |
asprintf in place of strdup really is kind of lame
ok millert@
-rw-r--r-- | libexec/spamd/grey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c index 3cb1fcec39a..e3f85f48c8c 100644 --- a/libexec/spamd/grey.c +++ b/libexec/spamd/grey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grey.c,v 1.20 2005/03/11 23:09:52 beck Exp $ */ +/* $OpenBSD: grey.c,v 1.21 2005/03/12 00:02:07 beck Exp $ */ /* * Copyright (c) 2004,2005 Bob Beck. All rights reserved. @@ -405,7 +405,7 @@ greyupdate(char *dbname, char *ip, char *from, char *to) return(-1); if (asprintf(&key, "%s\n%s\n%s", ip, from, to) == -1) goto bad; - if (asprintf(&trap, "%s",to) == -1) + if ((trap = strdup(to)) == NULL) goto bad; for (i = 0; trap[i] != '\0'; i++) if (isupper(trap[i])) |