bugfix pointed out by Kris Salaah (own mistake)

This commit is contained in:
2010-09-28 19:57:47 +00:00
parent a90115c2ee
commit 2b59013490

View File

@@ -374,7 +374,7 @@ static int insert_exec(bContext *C, wmOperator *op)
if(str[0]=='\t' && str[1]=='\0') {
int len= TAB_LENGTH - (ci->cursor % TAB_LENGTH);
MEM_freeN(str);
MEM_mallocN(len + 1, "insert_exec");
str= MEM_mallocN(len + 1, "insert_exec");
memset(str, ' ', len);
str[len]= '\0';
}