Behdad Esfahbod 2022-11-01 14:39:33 -06:00
parent 2ee42bbac2
commit fc935fb81b
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ struct Ligature
match_positions[i] += delta; match_positions[i] += delta;
if (i) if (i)
*p++ = ','; *p++ = ',';
snprintf (p, sizeof(buf), "%u", match_positions[i]); snprintf (p, sizeof(buf) - (p - buf), "%u", match_positions[i]);
p += strlen(p); p += strlen(p);
} }

View File

@ -117,7 +117,7 @@ struct Sequence
{ {
if (buf < p) if (buf < p)
*p++ = ','; *p++ = ',';
snprintf (p, sizeof(buf), "%u", i); snprintf (p, sizeof(buf) - (p - buf), "%u", i);
p += strlen(p); p += strlen(p);
} }