*** whois.c Fri May 2 16:12:16 1997 --- whois.c.new Thu May 15 15:54:59 1997 *************** *** 9,14 **** --- 9,18 ---- * 1.2 9705/02 * "-v" option added; ambrose@ripe.net * + * 1.2.1 9705/15 steven@dante.org.uk (Steven Bakker) + * Fixed core dump bug: "whois -t xyz", "whois -v abc" dumped core. + * Argument handling was screwy; + * * Copyright (c) 1980 Regents of the University of California. * All rights reserved. * *************** *** 575,581 **** #ifndef NETWORKUPDATE while (argc-- > 1) (void)fprintf(sfo, "%s ", *argv++); ! (void)fprintf(sfo, "%s\r\n", *argv); (void)fflush(sfo); #endif --- 579,586 ---- #ifndef NETWORKUPDATE while (argc-- > 1) (void)fprintf(sfo, "%s ", *argv++); ! if (*argv) (void)fputs(*argv, sfo); ! (void)fputs("\r\n", sfo); (void)fflush(sfo); #endif