Skip to content

Commit

Permalink
fix buffer overrun during headers display
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-aksyonov committed Nov 13, 2023
1 parent ae1b086 commit f5a1c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golded3/gemenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ GMsg* MenuMsgPtr;
void DispHeadAttrs(GMsg* msg)
{

char atrs[200];
CREATEBUFFER(char, atrs, MAXCOL+1);
MakeAttrStr(atrs, sizeof(atrs), &msg->attr);
strsetsz(atrs, MAXCOL-CFG->disphdrnodeset.pos);

Expand Down

0 comments on commit f5a1c87

Please sign in to comment.