diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-16 23:50:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-16 23:50:41 +0000 |
commit | 8fc355508a212636378bb6b6f4fec15bbbc16e6d (patch) | |
tree | 08254d2c297edae6e16d5c3548fbf069bf7790aa /usr.bin/m4 | |
parent | 17e25b83fa3628079f210143f33253c1340de8d4 (diff) |
incorrect write
Diffstat (limited to 'usr.bin/m4')
-rw-r--r-- | usr.bin/m4/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c index 2e2ab819642..e4bfa7ef1a8 100644 --- a/usr.bin/m4/misc.c +++ b/usr.bin/m4/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.25 2001/10/10 11:17:37 espie Exp $ */ +/* $OpenBSD: misc.c,v 1.26 2001/11/16 23:50:40 deraadt Exp $ */ /* $NetBSD: misc.c,v 1.6 1995/09/28 05:37:41 tls Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: misc.c,v 1.25 2001/10/10 11:17:37 espie Exp $"; +static char rcsid[] = "$OpenBSD: misc.c,v 1.26 2001/11/16 23:50:40 deraadt Exp $"; #endif #endif /* not lint */ @@ -242,7 +242,7 @@ onintr(signo) int signo; { #define intrmessage "m4: interrupted.\n" - write(STDERR_FILENO, intrmessage, sizeof(intrmessage)); + write(STDERR_FILENO, intrmessage, sizeof(intrmessage)-1); _exit(1); } |