diff -ur --minimal snort-1.9.1.orig/src/preprocessors/spp_http_decode.c snort-1.9.1/src/preprocessors/spp_http_decode.c --- snort-1.9.1.orig/src/preprocessors/spp_http_decode.c 2003-02-23 22:46:04.000000000 +0000 +++ snort-1.9.1/src/preprocessors/spp_http_decode.c 2003-03-26 22:36:33.000000000 +0000 @@ -444,11 +444,11 @@ psize = (u_int16_t) (p->dsize); /* first skip past the HTTP method */ - while(index < end && !lookup_whitespace[(u_int)(*index)]) + while(index < end && !lookup_whitespace[(u_char)(*index)]) index++; /* skip over whitespace seperator */ - while(index < end && lookup_whitespace[(u_int)(*index)]) + while(index < end && lookup_whitespace[(u_char)(*index)]) index++; /* evilness check */ @@ -562,8 +562,8 @@ "Double hex encoding received\n");); } - hex1=lookup_hexvalue[(u_int)(*(index+1))]; - hex2=lookup_hexvalue[(u_int)(*(index+2))]; + hex1=lookup_hexvalue[(u_char)(*(index+1))]; + hex2=lookup_hexvalue[(u_char)(*(index+2))]; if(hex1 != -1 && hex2 != -1) { @@ -612,7 +612,7 @@ } } - else if(lookup_whitespace[(u_int)(*index)]) + else if(lookup_whitespace[(u_char)(*index)]) { /* we've reached the delimiting whitespace */ /* UriBufs[0].http_version = (u_int8_t *) index; */ @@ -629,7 +629,7 @@ while(index < end && ((cur - (char *) UriBufs[0].uri) < URI_LENGTH)) { - if(lookup_whitespace[(u_int)(*index)]) + if(lookup_whitespace[(u_char)(*index)]) { /* we've reached the delimiting whitespace */ /* Time to get HTTP version? */