... but, in that case, the break, below, should be conditional; so perhaps it'd be better to: <code>
if (iptr->name) { if (strlen(ipbuf) + strlen(iptr->name) < sizeof(ipbuf)) { strcat...} else { break; } } </code>