Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/rpcgen one crash -> errx Christos missed



details:   https://anonhg.NetBSD.org/src/rev/69fe8876d499
branches:  trunk
changeset: 338090:69fe8876d499
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat May 09 23:14:22 2015 +0000

description:
one crash -> errx Christos missed

diffstat:

 usr.bin/rpcgen/rpc_cout.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 1b55d587b151 -r 69fe8876d499 usr.bin/rpcgen/rpc_cout.c
--- a/usr.bin/rpcgen/rpc_cout.c Sat May 09 23:12:57 2015 +0000
+++ b/usr.bin/rpcgen/rpc_cout.c Sat May 09 23:14:22 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpc_cout.c,v 1.34 2015/05/09 23:12:57 dholland Exp $   */
+/*     $NetBSD: rpc_cout.c,v 1.35 2015/05/09 23:14:22 dholland Exp $   */
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  * unrestricted use provided that this legend is included on all tape
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)rpc_cout.c 1.13 89/02/22 (C) 1987 SMI";
 #else
-__RCSID("$NetBSD: rpc_cout.c,v 1.34 2015/05/09 23:12:57 dholland Exp $");
+__RCSID("$NetBSD: rpc_cout.c,v 1.35 2015/05/09 23:14:22 dholland Exp $");
 #endif
 #endif
 
@@ -479,8 +479,7 @@
                                                nsizestr = (char *) realloc(sizestr, strlen(sizestr) + strlen(ptemp) + 1);
                                                if (nsizestr == NULL) {
 
-                                                       f_print(stderr, "Fatal error : no memory\n");
-                                                       crash();
+                                                       errx(EXIT_FAILURE, "Out of memory");
                                                }
                                                sizestr = nsizestr;
                                                sizestr = strcat(sizestr, ptemp);       /* build up length of



Home | Main Index | Thread Index | Old Index