lprintf(CTDL_INFO, "Closing databases\n");
close_databases();
- /* flush the networker stuff */
-/* destroy_network_queue_room();*/
-
/* Do system-dependent stuff */
sysdep_master_cleanup();
}
else ptr++;
}
- while (isspace((buf[strlen(buf)-1]))) {
- buf[strlen(buf)-1] = 0;
+ ptr--;
+ while (ptr>buf && isspace(*ptr)) {
+ *(ptr--) = 0;
}
if (hostname_to_dotted_quad(addrbuf, buf) == 0) {
if ((strlen(public_clients) +