Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common_aout Do not print \0 at the end of error mess...



details:   https://anonhg.NetBSD.org/src/rev/994f502f5270
branches:  trunk
changeset: 539269:994f502f5270
user:      itohy <itohy%NetBSD.org@localhost>
date:      Tue Nov 12 14:26:10 2002 +0000

description:
Do not print \0 at the end of error message.

diffstat:

 lib/csu/common_aout/common.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b23663a41c36 -r 994f502f5270 lib/csu/common_aout/common.h
--- a/lib/csu/common_aout/common.h      Tue Nov 12 14:00:41 2002 +0000
+++ b/lib/csu/common_aout/common.h      Tue Nov 12 14:26:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.h,v 1.11 1999/06/17 21:09:48 thorpej Exp $      */
+/*     $NetBSD: common.h,v 1.12 2002/11/12 14:26:10 itohy Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
 #endif
 
 #define _FATAL(str) \
-       write(2, str, sizeof(str)), \
+       write(2, str, sizeof(str) - 1), \
        _exit(1);
 
 #endif /* DYNAMIC */



Home | Main Index | Thread Index | Old Index