projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
OCC22360 Writing out of allocated memory in the method OSD_FontMgr::InitFontDataBase
[occt.git]
/
src
/
OSD
/
OSD_FontMgr.cxx
diff --git
a/src/OSD/OSD_FontMgr.cxx
b/src/OSD/OSD_FontMgr.cxx
index
5b0f009
..
adec9c2
100755
(executable)
--- a/
src/OSD/OSD_FontMgr.cxx
+++ b/
src/OSD/OSD_FontMgr.cxx
@@
-118,7
+118,7
@@
void OSD_FontMgr::InitFontDataBase() {
Standard_Size req_size;
req_size = strlen( getenv("windir") );
- windir_var = new Standard_Character[req_size];
+ windir_var = new Standard_Character[req_size
+ 1
];
strcpy( windir_var, getenv("windir") );