[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.62 and 1.63

version 1.62, 2015/11/09 07:52:18 version 1.63, 2015/11/09 11:44:00
Line 132 
Line 132 
                                 maclcur->l_fp = lp->l_fp;                                  maclcur->l_fp = lp->l_fp;
                                 free(lp);                                  free(lp);
                         }                          }
                         if ((rep[0] == 'y' || rep[0] == 'Y') &&                          if (strncasecmp(rep, "yes", sizeof(rep)) == 0)
                             (rep[1] == 'e' || rep[1] == 'E') &&  
                             (rep[2] == 's' || rep[2] == 'S') &&  
                             (rep[3] == '\0'))  
                                 return (TRUE);                                  return (TRUE);
                         if ((rep[0] == 'n' || rep[0] == 'N') &&                          if (strncasecmp(rep, "no", sizeof(rep)) == 0)
                             (rep[1] == 'o' || rep[0] == 'O') &&  
                             (rep[2] == '\0'))  
                                 return (FALSE);                                  return (FALSE);
                 }                  }
                 rep = eread("Please answer yes or no.  %s? (yes or no) ",                  rep = eread("Please answer yes or no.  %s? (yes or no) ",

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63