steipete/SDURLCache — Issue #5: dateFromHttpDateString: fixes
Author: bazineta
Created: 2012-01-07 16:51:35+00:00
State: open

In datefromHttpDateString, the following two lines:

if(((size_t)convertedCount != stringLength) || (usedBytes < 0L)) { return(NULL); }
stringBuffer[convertedCount] = 0;

should instead be:

if(((size_t)convertedCount != stringLength) || (usedBytes < 0L)) { return(nil); }
stringBuffer[usedBytes] = '\0';