Репозитории ALT
S: | 4.0.43-alt1 |
5.1: | 4.0.10-alt3 |
4.1: | 3.9.11.20070601-alt1 |
4.0: | 3.9.10.20060626-alt1 |
3.0: | 3.9.10-alt1 |
Группа :: Работа с файлами
Пакет: mtools
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mtools-4.0.10-alt-buffer.patch
Скачать
Скачать
diff -Naur mtools-4.0.10-orig/mlabel.c mtools-4.0.10/mlabel.c
--- mtools-4.0.10-orig/mlabel.c 2009-03-03 08:10:11 +0200
+++ mtools-4.0.10/mlabel.c 2009-07-20 15:09:32 +0300
@@ -35,7 +35,10 @@
int have_lower, have_upper;
wchar_t wbuffer[12];
- strcpy(ans->base," ");
+ memset(ans->base, ' ', sizeof ans->base);
+ memset(ans->ext, ' ', sizeof ans->ext);
+ ans->sentinel = '\0';
+
len = native_to_wchar(filename, wbuffer, 11, 0, 0);
if(len > 11){
*mangled = 1;