needed to use sizeof(string)-1 for text button lengths

This commit is contained in:
Campbell Barton
2009-06-08 11:04:05 +00:00
parent 983ffa63d7
commit d8ae009653

View File

@@ -1206,7 +1206,7 @@ static void seq_panel_proxy()
uiDefBut(block, TEX,
B_SEQ_BUT_RELOAD, "Dir: ",
30,120,220,20, last_seq->strip->proxy->dir,
0.0, (float)sizeof(last_seq->strip->proxy->dir), 100, 0, "");
0.0, (float)sizeof(last_seq->strip->proxy->dir)-1, 100, 0, "");
}
if (last_seq->flag & SEQ_USE_PROXY_CUSTOM_FILE) {
uiDefIconBut(block, BUT, B_SEQ_SEL_PROXY_FILE,
@@ -1218,7 +1218,7 @@ static void seq_panel_proxy()
uiDefBut(block, TEX,
B_SEQ_BUT_RELOAD, "File: ",
30,100,220,20, last_seq->strip->proxy->file,
0.0, (float)sizeof(last_seq->strip->proxy->file), 100, 0, "");
0.0, (float)sizeof(last_seq->strip->proxy->file)-1, 100, 0, "");
}
}