mtools/mtools-4.0.26-errmsgsize.patch
Pavel Cahyna abec21d1eb Increase error message buffer size
Resolves: RHEL-138313
(cherry picked from commit 1967eb8c89)
2026-02-16 17:59:19 +01:00

14 lines
456 B
Diff

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