Return to message.c CVS log | Up to [local] / src / usr.bin / rdist |
version 1.15, 2003/06/03 02:56:14 | version 1.16, 2007/09/11 15:47:17 | ||
---|---|---|---|
|
|
||
/* | /* | ||
* Ensure no stray newlines are present | * Ensure no stray newlines are present | ||
*/ | */ | ||
if ((cp = strchr(msgbuf, '\n')) != NULL) | msgbuf[strcspn(msgbuf, "\n")] = CNULL; | ||
*cp = CNULL; | |||
checkhostname(); | checkhostname(); | ||
if (strncmp(currenthost, msgbuf, strlen(currenthost)) == 0) | if (strncmp(currenthost, msgbuf, strlen(currenthost)) == 0) |