[BACK]Return to echo.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/echo.c between version 1.17 and 1.18

version 1.17, 2002/01/18 08:37:08 version 1.18, 2002/02/14 14:24:21
Line 101 
Line 101 
                                 free((char *)lp);                                  free((char *)lp);
                         }                          }
 #endif /* !NO_MACRO */  #endif /* !NO_MACRO */
                         if ((buf[0] == 'y' || buf[0] == 'Y')                          if ((buf[0] == 'y' || buf[0] == 'Y') &&
                             && (buf[1] == 'e' || buf[1] == 'E')                              (buf[1] == 'e' || buf[1] == 'E') &&
                             && (buf[2] == 's' || buf[2] == 'S')                              (buf[2] == 's' || buf[2] == 'S') &&
                             && (buf[3] == '\0'))                              (buf[3] == '\0'))
                                 return TRUE;                                  return TRUE;
                         if ((buf[0] == 'n' || buf[0] == 'N')                          if ((buf[0] == 'n' || buf[0] == 'N') &&
                             && (buf[1] == 'o' || buf[0] == 'O')                              (buf[1] == 'o' || buf[0] == 'O') &&
                             && (buf[2] == '\0'))                              (buf[2] == '\0'))
                                 return FALSE;                                  return FALSE;
                 }                  }
                 s = ereply("Please answer yes or no.  %s? (yes or no) ",                  s = ereply("Please answer yes or no.  %s? (yes or no) ",

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18