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