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