demo: fixed page build error resulted in broken page and uninitialised data use

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-09-01 12:04:30 +02:00
parent 3ebcdb43fb
commit c85dcb058a
+1 -1
View File
@@ -430,7 +430,7 @@ update_directory (void)
update_cached_response (NULL);
return;
}
memcpy (rdc.buf, INDEX_PAGE_FOOTER, len);
memcpy (rdc.buf + rdc.off, INDEX_PAGE_FOOTER, len);
rdc.off += len;
initial_allocation = rdc.buf_len; /* remember for next time */
response =