=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdist/message.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/rdist/message.c 1998/06/26 21:21:15 1.7 --- src/usr.bin/rdist/message.c 1999/02/04 23:18:57 1.8 *************** *** 1,4 **** ! /* $OpenBSD: message.c,v 1.7 1998/06/26 21:21:15 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: message.c,v 1.8 1999/02/04 23:18:57 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 39,45 **** "$From: message.c,v 6.24 1996/07/19 17:00:35 michaelc Exp $"; #else static char RCSid[] = ! "$OpenBSD: message.c,v 1.7 1998/06/26 21:21:15 millert Exp $"; #endif static char sccsid[] = "@(#)common.c"; --- 39,45 ---- "$From: message.c,v 6.24 1996/07/19 17:00:35 michaelc Exp $"; #else static char RCSid[] = ! "$OpenBSD: message.c,v 1.8 1999/02/04 23:18:57 millert Exp $"; #endif static char sccsid[] = "@(#)common.c"; *************** *** 210,216 **** if ((msgfac->mf_fptr = fopen(strptr, "w")) == NULL) fatalerr("Cannot open log file for writing: %s: %s.", strptr, SYSERR); ! msgfac->mf_filename = strdup(strptr); strptr = cp; break; --- 210,216 ---- if ((msgfac->mf_fptr = fopen(strptr, "w")) == NULL) fatalerr("Cannot open log file for writing: %s: %s.", strptr, SYSERR); ! msgfac->mf_filename = xstrdup(strptr); strptr = cp; break; *************** *** 505,511 **** if (gethostname(mbuf, sizeof(mbuf)) == 0) { if ((cp = strchr(mbuf, '.')) != NULL) *cp = CNULL; ! currenthost = strdup(mbuf); } else currenthost = "(unknown)"; } --- 505,511 ---- if (gethostname(mbuf, sizeof(mbuf)) == 0) { if ((cp = strchr(mbuf, '.')) != NULL) *cp = CNULL; ! currenthost = xstrdup(mbuf); } else currenthost = "(unknown)"; }