Skip to content
Snippets Groups Projects
Commit da72c15d authored by Magnus Holmgren's avatar Magnus Holmgren
Browse files

Fix missing dereference - bug with OOP_RD_NUL_DISCARD

parent c6d9b102
No related branches found
No related tags found
No related merge requests found
......@@ -399,7 +399,7 @@ static void *on_process(oop_source *oop, oop_read *rd, int try_read) {
}
assert(rd->style.nul_mode == OOP_RD_NUL_DISCARD);
for (notnul= nul+1;
notnul < buf+thisrecsz && notnul == '\0';
notnul < buf+thisrecsz && *notnul == '\0';
notnul++);
thisrecsz-= (notnul-nul);
checked= nul-buf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment