a6e010689d
Fix incorrect free() usage and writing past the end of a malloc()ed string
13 lines
356 B
Text
13 lines
356 B
Text
$NetBSD: patch-ad,v 1.2 2002/06/26 21:03:01 abs Exp $
|
|
|
|
--- test_io.c.orig Thu Feb 18 11:15:03 1999
|
|
+++ test_io.c
|
|
@@ -17,6 +17,8 @@
|
|
int datum;
|
|
int i;
|
|
|
|
+ setlinebuf(stdout);
|
|
+
|
|
if (argc < 2) {
|
|
fprintf(stderr, "usage: test_io device\n");
|
|
fprintf(stderr, " where device is the serial port at which the infra red receiver resides\n");
|