martin      99/12/13 06:17:37

  Modified:    src/modules/standard mod_mime.c
  Log:
  Avoid *all* side effects of signed/unsigned char sign extensions.
  (Probably unneccessary, but this tests only the single bit 7)
  
  Revision  Changes    Path
  1.52      +1 -1      apache-1.3/src/modules/standard/mod_mime.c
  
  Index: mod_mime.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_mime.c,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- mod_mime.c        1999/12/10 14:51:03     1.51
  +++ mod_mime.c        1999/12/13 14:17:37     1.52
  @@ -73,7 +73,7 @@
    * defined it's not always right for our needs.  Roll our own that
    * we can rely on.
    */
  -#define ap_isascii(c) ((OS_ASC(c) & ~0177) != 0)
  +#define ap_isascii(c) ((OS_ASC(c) & 0x80) == 0)
   
   typedef struct handlers_info {
       char *name;
  
  
  

Reply via email to