Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/libexec/getty Pullup 1.33 [bjh21]:
details: https://anonhg.NetBSD.org/src/rev/9788e89a7ac3
branches: netbsd-1-5
changeset: 489771:9788e89a7ac3
user: tv <tv%NetBSD.org@localhost>
date: Tue Oct 17 01:34:47 2000 +0000
description:
Pullup 1.33 [bjh21]:
Don't run over the end of the banner buffer if it ends with '%'.
diffstat:
libexec/getty/main.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8927170ca02a -r 9788e89a7ac3 libexec/getty/main.c
--- a/libexec/getty/main.c Tue Oct 17 01:32:31 2000 +0000
+++ b/libexec/getty/main.c Tue Oct 17 01:34:47 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.31 2000/01/14 02:10:08 ad Exp $ */
+/* $NetBSD: main.c,v 1.31.4.1 2000/10/17 01:34:47 tv Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";
#else
-__RCSID("$NetBSD: main.c,v 1.31 2000/01/14 02:10:08 ad Exp $");
+__RCSID("$NetBSD: main.c,v 1.31.4.1 2000/10/17 01:34:47 tv Exp $");
#endif
#endif /* not lint */
@@ -691,6 +691,7 @@
putchr('%');
break;
}
- cp++;
+ if (*cp)
+ cp++;
}
}
Home |
Main Index |
Thread Index |
Old Index