mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
fix incorrect index
This commit is contained in:
@@ -97,7 +97,7 @@ object PgfReader::read_name_internal(size_t struct_size)
|
|||||||
if (in->fail())
|
if (in->fail())
|
||||||
throw std::system_error(errno, std::generic_category());
|
throw std::system_error(errno, std::generic_category());
|
||||||
|
|
||||||
ptext->text[size+1] = 0;
|
ptext->text[size] = 0;
|
||||||
|
|
||||||
return offs;
|
return offs;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user