mtools/mtools-4.0.43-errmsgsize.patch
Pavel Cahyna 1967eb8c89 Increase error message buffer size
Resolves: RHEL-44911
2024-08-21 14:07:38 +02:00

14 lines
472 B
Diff

diff -up mtools-4.0.43/mcopy.c.orig mtools-4.0.43/mcopy.c
--- mtools-4.0.43/mcopy.c.orig 2024-08-20 18:41:43.957181199 +0200
+++ mtools-4.0.43/mcopy.c 2024-08-20 18:40:51.921966014 +0200
@@ -196,7 +196,8 @@ static int _unix_write(MainParam_t *mp,
Stream_t *File=mp->File;
Stream_t *Target, *Source;
struct MT_STAT stbuf;
- char errmsg[80];
+ /* matches buffer size in SimpleFileOpenWithLm() */
+ char errmsg[200];
File->Class->get_data(File, &mtime, 0, 0, 0);