mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
replace-gets-with-fgets-20001104
replace gets with fgets based as patch from nneul@umr.edu
This commit is contained in:
parent
0977f32648
commit
17fdc9038a
@ -319,7 +319,7 @@ int main (void)
|
||||
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);
|
||||
|
||||
|
@ -128,7 +128,7 @@ main(argc, argv)
|
||||
int nargs;
|
||||
|
||||
printf("fs> ");
|
||||
if (gets(line) != NULL) {
|
||||
if (fgets(line, 499, stdin) != NULL) {
|
||||
char *oper;
|
||||
register char **argp = args;
|
||||
GetArgs(line, argp, &nargs);
|
||||
|
@ -286,7 +286,7 @@ static handleit(as)
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user