Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 263802
Collapse All | Expand All

(-)util.c (-3 / +3 lines)
Lines 58-66 Link Here
58
void getword(char *word, int limit, char *line, int stop)
58
void getword(char *word, int limit, char *line, int stop)
59
{
59
{
60
  int x = 0, y = 0;
60
  int x = 0, y = 0;
61
  //char wline[MAXLEN];
61
  char wline[MAXLEN];
62
62
63
  //strcpy(wline,line);
63
  strcpy(wline,line);
64
64
65
  if(strlen(line) < 3) {
65
  if(strlen(line) < 3) {
66
     word[0]='\0';
66
     word[0]='\0';
Lines 70-76 Link Here
70
  for(x=0; line[x] && (line[x] != stop ) && x<limit; x++) word[x] = line[x];
70
  for(x=0; line[x] && (line[x] != stop ) && x<limit; x++) word[x] = line[x];
71
  if(x == limit) {
71
  if(x == limit) {
72
    printf("SARG: getword loop detected.\n");
72
    printf("SARG: getword loop detected.\n");
73
    //printf("SARG: Record=\"%s\"\n",wline);
73
    printf("SARG: Record=\"%s\"\n",wline);
74
    printf("SARG: searching for \'x%x\'\n",stop);
74
    printf("SARG: searching for \'x%x\'\n",stop);
75
    printf("SARG: Maybe you have a broken record or garbage in your access.log file.\n");
75
    printf("SARG: Maybe you have a broken record or garbage in your access.log file.\n");
76
    //word[0]='\0';
76
    //word[0]='\0';

Return to bug 263802