mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-05 03:35:27 -07:00
fix incorrect index
This commit is contained in:
1 parent
2daf9e2e19
commit
7f7fe59fc0
1 file changed
+1
-1
@@ -97,7 +97,7 @@ object PgfReader::read_name_internal(size_t struct_size)
|
||||
if (in->fail())
|
||||
throw std::system_error(errno, std::generic_category());
|
||||
|
||||
ptext->text[size+1] = 0;
|
||||
ptext->text[size] = 0;
|
||||
|
||||
return offs;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user