diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-05 01:31:50 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-05 03:11:11 -0700 |
| commit | cd0ea7fe25b1bad4d5685e6d47d0ea5d79fefd6c (patch) | |
| tree | 9a7d0185a3215eae7cad9e3104db4d244ec7f644 /pkg/e2fsprogs/patch/0002-Fix-format-specifier-in-error-message.patch | |
| parent | 6b03d019ddc6da1b92b512627f4d1513ca2cb13e (diff) | |
e2fsprogs: Fix/disable some warnings
Diffstat (limited to 'pkg/e2fsprogs/patch/0002-Fix-format-specifier-in-error-message.patch')
| -rw-r--r-- | pkg/e2fsprogs/patch/0002-Fix-format-specifier-in-error-message.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/e2fsprogs/patch/0002-Fix-format-specifier-in-error-message.patch b/pkg/e2fsprogs/patch/0002-Fix-format-specifier-in-error-message.patch new file mode 100644 index 00000000..eef95b2c --- /dev/null +++ b/pkg/e2fsprogs/patch/0002-Fix-format-specifier-in-error-message.patch @@ -0,0 +1,25 @@ +From b346ce6f199dccc18caf26d25473f1841c51007d Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Fri, 5 Jun 2020 01:27:30 -0700 +Subject: [PATCH] Fix format specifier in error message + +--- + e2fsck/util.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/e2fsck/util.c b/e2fsck/util.c +index d98b8e47..b0e01cc9 100644 +--- a/e2fsck/util.c ++++ b/e2fsck/util.c +@@ -126,7 +126,7 @@ void *e2fsck_allocate_memory(e2fsck_t ctx, unsigned long size, + printf("Allocating %u bytes for %s...\n", size, description); + #endif + if (ext2fs_get_memzero(size, &ret)) { +- sprintf(buf, "Can't allocate %u bytes for %s\n", ++ sprintf(buf, "Can't allocate %lu bytes for %s\n", + size, description); + fatal_error(ctx, buf); + } +-- +2.27.0 + |
