Skip to content

Commit 66c5efe

Browse files
committed
Bugfix: Another OPL parser bug
See #330
1 parent a4a57b1 commit 66c5efe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/osmium/io/detail/o5m_input_format.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ namespace osmium {
294294
return {0, ""};
295295
}
296296

297-
while (*data++) {
297+
do {
298298
if (data == end) {
299299
throw o5m_error{"no null byte in user name"};
300300
}
301-
}
301+
} while (*data++);
302302

303303
if (update_pointer) {
304304
m_reference_table.add(start, data - start);

0 commit comments

Comments
 (0)