Fix snprintf use
https://github.com/harfbuzz/harfbuzz/pull/3495#issuecomment-1299107964
This commit is contained in:
parent
2ee42bbac2
commit
fc935fb81b
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue