$Log$
+ Revision 590.142 2002/03/12 03:36:55 nbryant
+ replace calls to gets with fgets
+
Revision 590.141 2002/03/12 03:19:09 nbryant
more sprintf bashing. now the only ones left are in mime_parser
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
"ERASE any 5.90 configuration files that you have already set up.\n\n"
"Are you sure you want to do this? ");
- gets(buf);
+ fgets(buf, sizeof buf, stdin);
if (tolower(buf[0]) != 'y') exit(0);
get_config();
fprintf(nodefp, "%s|", d->d_name);
printf("Enter shared secret: ");
- gets(buf);
+ fgets(buf, sizeof buf, stdin);
if (buf[0] == 0) strcpy(buf, config.c_net_password);
fprintf(nodefp, "%s|", buf);
printf("Enter host name/IP : ");
- gets(buf);
+ fgets(buf, sizeof buf, stdin);
if (buf[0] == 0) snprintf(buf, sizeof buf, "%s.citadel.org",
d->d_name);
fprintf(nodefp, "%s|", buf);
printf("Enter port number : ");
- gets(buf);
+ fgets(buf, sizeof buf, stdin);
if (buf[0] == 0) strcpy(buf, "504");
fprintf(nodefp, "%s\n", buf);
"old network configuration files. Delete them now? "
);
- gets(buf);
+ fgets(buf, sizeof buf, stdin);
if (tolower(buf[0]) != 'y') exit(0);
get_config();