mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023996: Width 50 given in format string (no. 2) is larger than destination buffer 'vale[50]'
Increased the size of the destination buffer to avoid possible overflow.
This commit is contained in:
parent
034b4775dc
commit
20b1ae2c3c
@ -278,7 +278,7 @@ Standard_Integer Interface_Static::IDef
|
||||
if (part[1] == 'c') return (endcase - startcase + 1);
|
||||
if (part[1] == 'm') return (match ? 1 : 0);
|
||||
if (part[1] == 'v') {
|
||||
char vale[50];
|
||||
char vale[51];
|
||||
sscanf (part,"%30s %50s",defmess,vale);
|
||||
return stat->EnumCase (vale);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user