xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/blktool/blktool/0002-fix-string-error.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From ddb1071da2c78d8155aab62e9f0d46f69500200f Mon Sep 17 00:00:00 2001
2From: Azat Khuzhin <a3at.mail@gmail.com>
3Date: Wed, 8 Jul 2015 01:42:24 +0300
4Subject: [PATCH 2/3] fix string error
5
6This patch is taken from
7ftp://ftp.debian.org/debian/pool/main/b/blktool/blktool_4-7.debian.tar.xz
8
9Upstream-Status: Inappropriate [upstream is dead]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11
12---
13 util.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/util.c b/util.c
17index 1f3a9ca..2ccf56a 100644
18--- a/util.c
19+++ b/util.c
20@@ -28,7 +28,7 @@ void pdie(const char *msg, int perr)
21 	if (perr)
22 		perror(msg);
23 	else
24-		fprintf(stderr, msg);
25+		fprintf(stderr, "%s", msg);
26 	if (blkdev >= 0)
27 		close(blkdev);
28 	exit(1);
29--
302.1.4
31
32