Bug 328900: Crash in StuffFixedBuffer; r=bsmedberg, sr=darin

This commit is contained in:
mnyromyr%tprac.de 2006-03-02 20:30:58 +00:00
Родитель bdeee1c1ae
Коммит 85822474d2
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -235,6 +235,9 @@ struct FixedBuffer
static PRIntn
StuffFixedBuffer(void *closure, const char *buf, PRUint32 len)
{
if (!len)
return 0;
FixedBuffer *fb = (FixedBuffer*) closure;
// strip the trailing null, we add it again later