diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-09-30 20:13:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-09-30 20:13:13 +0000 |
commit | 93e06ba6fa607c56fe466185179ca6103dd137cf (patch) | |
tree | be838fa10be8b82fc8578ce1682529b64dd8a70b | |
parent | 888fcd84d9bfe92dce593034e954582e79c4f0c9 (diff) |
rather surprised to find a vsprintf still lying around here..
-rw-r--r-- | gnu/usr.bin/ld/rtld/rtld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/rtld/rtld.c b/gnu/usr.bin/ld/rtld/rtld.c index 87b2652a68b..fd94cb7e372 100644 --- a/gnu/usr.bin/ld/rtld/rtld.c +++ b/gnu/usr.bin/ld/rtld/rtld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld.c,v 1.39 2004/11/08 20:47:07 miod Exp $ */ +/* $OpenBSD: rtld.c,v 1.40 2005/09/30 20:13:12 deraadt Exp $ */ /* $NetBSD: rtld.c,v 1.43 1996/01/14 00:35:17 pk Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -1663,7 +1663,7 @@ char *fmt; va_start(ap); #endif - vsprintf(buf, fmt, ap); + vsnprintf(buf, sizeof buf, fmt, ap); (void)write(1, buf, strlen(buf)); va_end(ap); } |