Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Minor change to previous.
details: https://anonhg.NetBSD.org/src/rev/ca8d7f0383b8
branches: trunk
changeset: 475820:ca8d7f0383b8
user: mycroft <mycroft%NetBSD.org@localhost>
date: Thu Aug 26 20:28:53 1999 +0000
description:
Minor change to previous.
diffstat:
lib/libc/gen/__fts13.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3ed52cb6dd1f -r ca8d7f0383b8 lib/libc/gen/__fts13.c
--- a/lib/libc/gen/__fts13.c Thu Aug 26 20:24:59 1999 +0000
+++ b/lib/libc/gen/__fts13.c Thu Aug 26 20:28:53 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __fts13.c,v 1.17 1999/08/26 20:24:59 mycroft Exp $ */
+/* $NetBSD: __fts13.c,v 1.18 1999/08/26 20:28:53 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#else
-__RCSID("$NetBSD: __fts13.c,v 1.17 1999/08/26 20:24:59 mycroft Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.18 1999/08/26 20:28:53 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -710,7 +710,7 @@
#endif
if ((p = fts_alloc(sp, dp->d_name, dlen)) == NULL)
goto mem1;
- if (dlen + 1 > maxlen) {
+ if (dlen >= maxlen) { /* include space for NUL */
if (fts_palloc(sp, dlen)) {
/*
* No more memory for path or structures. Save
Home |
Main Index |
Thread Index |
Old Index