CVS commit: src/sys/arch/alpha/stand/standtest

2016-06-11 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Jun 11 06:26:50 UTC 2016

Modified Files:
src/sys/arch/alpha/stand/standtest: test.c

Log Message:
PR 51200 gets in libsa considered harmful: use kgets


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/alpha/stand/standtest/test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/stand/standtest/test.c
diff -u src/sys/arch/alpha/stand/standtest/test.c:1.6 src/sys/arch/alpha/stand/standtest/test.c:1.7
--- src/sys/arch/alpha/stand/standtest/test.c:1.6	Sun Dec 13 18:51:14 2015
+++ src/sys/arch/alpha/stand/standtest/test.c	Sat Jun 11 06:26:50 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: test.c,v 1.6 2015/12/13 18:51:14 christos Exp $ */
+/* $NetBSD: test.c,v 1.7 2016/06/11 06:26:50 dholland Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -115,7 +115,7 @@ main(unsigned long pfn, unsigned long pt
 
 	do {
 		printf("test> ");
-		gets(input_buf);
+		kgets(input_buf, sizeof(input_buf));
 
 		dispatch_cmd(input_buf, toplevel_cmds);
 	} while (!done);



CVS commit: src/sys/arch/alpha/stand/standtest

2015-12-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 13 18:51:14 UTC 2015

Modified Files:
src/sys/arch/alpha/stand/standtest: test.c

Log Message:
PR/50530: David Binderman: Add missing printf args


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/alpha/stand/standtest/test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/stand/standtest/test.c
diff -u src/sys/arch/alpha/stand/standtest/test.c:1.5 src/sys/arch/alpha/stand/standtest/test.c:1.6
--- src/sys/arch/alpha/stand/standtest/test.c:1.5	Sat Jan 22 14:19:15 2011
+++ src/sys/arch/alpha/stand/standtest/test.c	Sun Dec 13 13:51:14 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: test.c,v 1.5 2011/01/22 19:19:15 joerg Exp $ */
+/* $NetBSD: test.c,v 1.6 2015/12/13 18:51:14 christos Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -275,7 +275,7 @@ toplevel_dpb(const char *buf)
 	}
 	buf = cvt_number(buf, );
 	if (*buf != '\0' && !isspace(*buf)) {
-		printf("bad character '%c' in starting address\n");
+		printf("bad character '%c' in starting address\n", *buf);
 		return;
 	}
 
@@ -283,7 +283,7 @@ toplevel_dpb(const char *buf)
 	if (buf != NULL) {
 		buf = cvt_number(buf, );
 		if (*buf != '\0' && !isspace(*buf)) {
-			printf("bad character '%c' in count\n");
+			printf("bad character '%c' in count\n", *buf);
 			return;
 		}
 		buf = advance_past_space(buf);