forked from pool/mtools
17477a4002
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
14 lines
435 B
Diff
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){
|