Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/restore fix wrong size (thanks mlelstv@)
details: https://anonhg.NetBSD.org/src/rev/a59087f165fa
branches: trunk
changeset: 1023197:a59087f165fa
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 29 09:15:33 2021 +0000
description:
fix wrong size (thanks mlelstv@)
diffstat:
sbin/restore/interactive.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a32cc235bad9 -r a59087f165fa sbin/restore/interactive.c
--- a/sbin/restore/interactive.c Sun Aug 29 09:09:53 2021 +0000
+++ b/sbin/restore/interactive.c Sun Aug 29 09:15:33 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: interactive.c,v 1.29 2021/06/19 13:56:35 christos Exp $ */
+/* $NetBSD: interactive.c,v 1.30 2021/08/29 09:15:33 christos Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)interactive.c 8.5 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: interactive.c,v 1.29 2021/06/19 13:56:35 christos Exp $");
+__RCSID("$NetBSD: interactive.c,v 1.30 2021/08/29 09:15:33 christos Exp $");
#endif
#endif /* not lint */
@@ -371,7 +371,7 @@
* it then canonicalize and return it.
*/
snprintf(output, sizeof(output), "%s/%s", curdir, rawname);
- canon(output, name, sizeof(name));
+ canon(output, name, size);
}
if ((globretval = glob(name, GLOB_ALTDIRFUNC, NULL, &ap->glob)) < 0) {
fprintf(stderr, "%s: %s: ", ap->cmd, name);
Home |
Main Index |
Thread Index |
Old Index