SHA256
1
0
forked from pool/mtools
mtools/mtools-4.0.13-initialize.diff
OBS User autobuild 17477a4002 Accepting request 42280 from Base:System
Copy from Base:System/mtools based on submit request 42280 from user pgajdos

OBS-URL: https://build.opensuse.org/request/show/42280
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mtools?expand=0&rev=18
2010-06-29 17:12:50 +00:00

14 lines
435 B
Diff

Index: mtools-4.0.13/mlabel.c
===================================================================
--- mtools-4.0.13.orig/mlabel.c
+++ mtools-4.0.13/mlabel.c
@@ -35,7 +35,7 @@ void label_name(doscp_t *cp, const char
int have_lower, have_upper;
wchar_t wbuffer[12];
- memset(ans, ' ', sizeof(ans)-1);
+ memset(ans, ' ', sizeof(*ans)-1);
ans->sentinel = '\0';
len = native_to_wchar(filename, wbuffer, 11, 0, 0);
if(len > 11){