replace gets with fgets
based as patch from nneul@umr.edu
char cell[MAXKTCREALMLEN];
printf("Enter login:");
- gets (line);
+ fgets (line, 255, stdin);
ka_ParseLoginName (line, name, instance, cell);
printf ("'%s' '%s' '%s'\n", name, instance, cell);
int nargs;
printf("fs> ");
- if (gets(line) != NULL) {
+ if (fgets(line, 499, stdin) != NULL) {
char *oper;
register char **argp = args;
GetArgs(line, argp, &nargs);
bzero(&updateentry, sizeof(updateentry));
bzero(&listbyattributes, sizeof(listbyattributes));
printf("vl> ");
- if (gets(line) == NULL) {
+ if (fgets(line, 499, stdin) == NULL) {
printf("\n");
exit(0);
} else {