Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net use snprintf, not sprintf. sync with kame.
details: https://anonhg.NetBSD.org/src/rev/dff134f0eec0
branches: trunk
changeset: 514009:dff134f0eec0
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Aug 20 02:33:31 2001 +0000
description:
use snprintf, not sprintf. sync with kame.
diffstat:
lib/libc/net/getaddrinfo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 04a5d91a6cfe -r dff134f0eec0 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c Mon Aug 20 02:18:58 2001 +0000
+++ b/lib/libc/net/getaddrinfo.c Mon Aug 20 02:33:31 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getaddrinfo.c,v 1.53 2001/01/25 22:50:55 jdolecek Exp $ */
+/* $NetBSD: getaddrinfo.c,v 1.54 2001/08/20 02:33:31 itojun Exp $ */
/* $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $ */
/*
@@ -79,7 +79,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getaddrinfo.c,v 1.53 2001/01/25 22:50:55 jdolecek Exp $");
+__RCSID("$NetBSD: getaddrinfo.c,v 1.54 2001/08/20 02:33:31 itojun Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -1958,7 +1958,7 @@
h_errno = NO_RECOVERY;
return (-1);
}
- sprintf(nbuf, "%s.%s", name, domain);
+ snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain);
}
return (res_queryN(longname, target));
}
Home |
Main Index |
Thread Index |
Old Index