mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0023842: Undefined behavior: Variable 'thePsFont' is used as parameter and destination in s[n]printf()
This commit is contained in:
parent
5c686fff42
commit
8b224a0992
@ -90,10 +90,13 @@ namespace
|
|||||||
|
|
||||||
if (isBold)
|
if (isBold)
|
||||||
{
|
{
|
||||||
sprintf (thePsFont, "%s-%s", TheFamily[aFontId], "Bold");
|
|
||||||
if (isItalic)
|
if (isItalic)
|
||||||
{
|
{
|
||||||
sprintf (thePsFont, "%s%s", thePsFont, TheItalic[aFontId]);
|
sprintf (thePsFont, "%s-Bold%s", TheFamily[aFontId], TheItalic[aFontId]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sprintf (thePsFont, "%s-Bold", TheFamily[aFontId]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (isItalic)
|
else if (isItalic)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user