This is coverity issue CID: 456

fixes a buffer overrun issue.

Kent
This commit is contained in:
2008-10-31 14:15:35 +00:00
parent 68cde07b99
commit 25a2753877

View File

@@ -1808,7 +1808,7 @@ static int ui_do_but_TEX(uiBut *but)
((G.qual & LR_COMMANDKEY) || (G.qual & LR_CTRLKEY)) &&
((dev==XKEY) || (dev==CKEY) || (dev==VKEY)) ) {
char buf[UI_MAX_DRAW_STR]={0};
char buf[UI_MAX_DRAW_STR+1]={0};
/* paste */
if (dev==VKEY) {