ALT Linux repositórios
S: | 4.0.43-alt1 |
5.0: | 3.9.11.20070601-alt2 |
4.1: | 3.9.11.20070601-alt1 |
4.0: | 3.9.10.20060626-alt1 |
3.0: | 3.9.10-alt1 |
Group :: Ferramentas de Arquivo
RPM: mtools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: mtools-4.0.10-alt-buffer.patch
Download
Download
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;