version 1.8 | | version 1.9 |
---|
| | |
/* | | /* |
* static char *rcsid_ban_c = | | * static char *rcsid_ban_c = |
* "$Id: ban.c,v 1.8 2005/04/27 21:43:29 ryo_saeba Exp $"; | | * "$Id: ban.c,v 1.9 2005/07/10 13:54:06 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
strncpy(log_buf, line_buf, num1); /* copy login name into log_buf */ | | strncpy(log_buf, line_buf, num1); /* copy login name into log_buf */ |
log_buf[num1] = '\0'; | | log_buf[num1] = '\0'; |
strncpy(host_buf, indexpos + 1, 64); /* copy host name into host_buf */ | | strncpy(host_buf, indexpos + 1, 64); /* copy host name into host_buf */ |
| | host_buf[63] = '\0'; |
/* Cut off any extra spaces on the host buffer */ | | /* Cut off any extra spaces on the host buffer */ |
indexpos = host_buf; | | indexpos = host_buf; |
while (!isspace(*indexpos)) | | while (!isspace(*indexpos)) |