add mc
[buildroot.git] / package / mc / wchar.patch
blobdd5efc2a74808b4f428c16f79b350809edb6f435
1 diff -Naur mc-4.1.40.orig/edit/editcmd.c mc-4.1.40/edit/editcmd.c
2 --- mc-4.1.40.orig/edit/editcmd.c 2004-08-28 06:30:33 +0000
3 +++ mc-4.1.40/edit/editcmd.c 2007-08-02 19:40:06 +0000
4 @@ -3159,7 +3159,7 @@
5 bufpos = &edit->buffers1[word_start >> S_EDIT_BUF_SIZE]
6 [word_start & M_EDIT_BUF_SIZE];
8 - match_expr = malloc((word_len + 14) * sizeof(wchar_t));
9 + match_expr = malloc((word_len + 14) * sizeof(int));
11 strncpy (match_expr, bufpos, word_len);
12 match_expr[word_len] = '\0';