1
0
forked from pool/mtools
mtools/mtools-4.0.13-initialize.diff

14 lines
435 B
Diff
Raw Normal View History

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){