ben 96/09/08 05:25:31
Modified: src mod_cookies.c Log: Use strchr instead of index. Revision Changes Path 1.15 +2 -2 apache/src/mod_cookies.c Index: mod_cookies.c =================================================================== RCS file: /export/home/cvs/apache/src/mod_cookies.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C3 -r1.14 -r1.15 *** mod_cookies.c 1996/08/24 14:41:32 1.14 --- mod_cookies.c 1996/09/08 12:25:30 1.15 *************** *** 50,56 **** * */ ! /* $Id: mod_cookies.c,v 1.14 1996/08/24 14:41:32 ben Exp $ */ /* User Tracking Module * --- 50,56 ---- * */ ! /* $Id: mod_cookies.c,v 1.15 1996/09/08 12:25:30 ben Exp $ */ /* User Tracking Module * *************** *** 257,263 **** /* {<num> <type>}* */ while ( word[0] ) { /* <num> */ ! if ( index("0123456789", word[0]) != NULL ) num = atoi( word ); else return "bad expires code, numeric value expected."; --- 257,263 ---- /* {<num> <type>}* */ while ( word[0] ) { /* <num> */ ! if ( strchr("0123456789", word[0]) != NULL ) num = atoi( word ); else return "bad expires code, numeric value expected.";