fix incorrect index

This commit is contained in:
krangelov
2021-09-03 19:55:02 +02:00
parent 2daf9e2e19
commit 7f7fe59fc0

View File

@@ -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;
}