File xbanner-1.31-gets.patch of Package xbanner
--- xb_check.c +++ xb_check.c @@ -280,6 +280,7 @@ int i,j,k; char namelist[MAX_CYCS][MAX_CYCNAME]; char appname[LNLEN]="xbanner"; + char *p; if (argc>1) { @@ -303,8 +304,9 @@ } } - while(gets(line)!=NULL) + while(fgets(line, sizeof line, stdin)!=NULL) { + if ((p = strchr(line, '\n')) != NULL) *p = '\0'; if(line[0]=='!') continue; strcpy(elem1,elem(line,0));