File: 0002-fix-string-error.patch

package info (click to toggle)
blktool 4-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 480 kB
  • sloc: ansic: 1,978; sh: 791; makefile: 9
file content (25 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 8571ba876fc914ccd71a875ae23b09012604a94e Mon Sep 17 00:00:00 2001
From: Azat Khuzhin <a3at.mail@gmail.com>
Date: Wed, 8 Jul 2015 01:42:24 +0300
Subject: [PATCH] fix string error

---
 util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 1f3a9ca..2ccf56a 100644
--- a/util.c
+++ b/util.c
@@ -28,7 +28,7 @@ void pdie(const char *msg, int perr)
 	if (perr)
 		perror(msg);
 	else
-		fprintf(stderr, msg);
+		fprintf(stderr, "%s", msg);
 	if (blkdev >= 0)
 		close(blkdev);
 	exit(1);
-- 
2.1.4