54e364
From 1b2b6b683bd7ca3a7030889daf8c326dda797319 Mon Sep 17 00:00:00 2001
3e84e8
From: rpm-build <rpm-build>
3e84e8
Date: Tue, 28 Feb 2017 10:06:42 -0800
54e364
Subject: [PATCH 22/32] libiscsi format-security build errors
3e84e8
3e84e8
---
3e84e8
 libiscsi/libiscsi.c | 5 +++--
3e84e8
 1 file changed, 3 insertions(+), 2 deletions(-)
3e84e8
3e84e8
diff --git a/libiscsi/libiscsi.c b/libiscsi/libiscsi.c
e8d211
index bb17dfcafded..7003388e3346 100644
3e84e8
--- a/libiscsi/libiscsi.c
3e84e8
+++ b/libiscsi/libiscsi.c
3e84e8
@@ -177,7 +177,8 @@ int libiscsi_discover_sendtargets(struct libiscsi_context *context,
3e84e8
 		*found_nodes = calloc(found, sizeof **found_nodes);
3e84e8
 		if (*found_nodes == NULL) {
3e84e8
 			snprintf(context->error_str,
3e84e8
-				 sizeof(context->error_str), strerror(ENOMEM));
3e84e8
+				 sizeof(context->error_str),
3e84e8
+				 "%s", strerror(ENOMEM));
3e84e8
 			rc = ENOMEM;
3e84e8
 			goto leave;
3e84e8
 		}
3e84e8
@@ -634,7 +635,7 @@ static int get_parameter_helper(void *data, node_rec_t *rec)
3e84e8
 	info = idbm_recinfo_alloc(MAX_KEYS);
3e84e8
 	if (!info) {
3e84e8
 		snprintf(context->error_str, sizeof(context->error_str),
3e84e8
-			 strerror(ENOMEM));
3e84e8
+			 "%s", strerror(ENOMEM));
3e84e8
 		return ENOMEM;
3e84e8
 	}
3e84e8
 
3e84e8
-- 
54e364
2.14.4
3e84e8