Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen unconfuse lint; XXX: should really fix lint.
details: https://anonhg.NetBSD.org/src/rev/782b8d53d405
branches: trunk
changeset: 778768:782b8d53d405
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 13 02:20:50 2012 +0000
description:
unconfuse lint; XXX: should really fix lint.
diffstat:
lib/libc/gen/getpass.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 3128e9aa7837 -r 782b8d53d405 lib/libc/gen/getpass.c
--- a/lib/libc/gen/getpass.c Fri Apr 13 01:12:32 2012 +0000
+++ b/lib/libc/gen/getpass.c Fri Apr 13 02:20:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getpass.c,v 1.20 2012/04/12 23:16:38 christos Exp $ */
+/* $NetBSD: getpass.c,v 1.21 2012/04/13 02:20:50 christos Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getpass.c,v 1.20 2012/04/12 23:16:38 christos Exp $");
+__RCSID("$NetBSD: getpass.c,v 1.21 2012/04/13 02:20:50 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -203,8 +203,9 @@
add:
if (l >= len) {
if (allocated) {
+ char *b;
len += 1024;
- char *b = realloc(buf, len);
+ b = realloc(buf, len);
if (b == NULL)
goto restore;
buf = b;
Home |
Main Index |
Thread Index |
Old Index