diff --git a/CREDITS b/CREDITS new file mode 100644 index 0000000..875bdf0 --- /dev/null +++ b/CREDITS @@ -0,0 +1,5 @@ +The FSF.hu Foundation (http://fsf.hu/) supported and donated piler within the +"Free Software Application 2011 project." (http://fsf.hu/2011/09/27/szabad-szoftver-palyazat-2011/) + +Nemeth Adam reviewed the web interface, and gave lots of useful hints and insights to +improve the web ui of piler. diff --git a/src/digest.c b/src/digest.c index a284236..13046b2 100644 --- a/src/digest.c +++ b/src/digest.c @@ -20,7 +20,7 @@ int search_header_end(char *p, int n){ int hdr_len=0; - if(strlen(p) < 5) return hdr_len; + if(n < 5) return hdr_len; for(; *p; p++){ if(hdr_len < n-2 && *p == '\n' && *(p+1) == '\r' && *(p+2) == '\n'){ hdr_len += 3; return MAX(hdr_len, n); }