Sophie

Sophie

distrib > Mageia > 3 > x86_64 > media > core-release-src > by-pkgid > 24b296de9314b74465618261d91eb3de > files > 23

open-iscsi-2.0-872.2.mga3.src.rpm

--- libiscsi/libiscsi.c	2012-09-14 10:30:19.700520872 +0200
+++ libiscsi/libiscsi.c.oden	2012-09-14 10:31:07.453523542 +0200
@@ -175,7 +175,7 @@ int libiscsi_discover_sendtargets(struct
 		*found_nodes = calloc(found, sizeof **found_nodes);
 		if (*found_nodes == NULL) {
 			snprintf(context->error_str,
-				 sizeof(context->error_str), strerror(ENOMEM));
+				 sizeof(context->error_str), "%s", strerror(ENOMEM));
 			rc = ENOMEM;
 			goto leave;
 		}
@@ -499,7 +499,7 @@ static int get_parameter_helper(void *da
 	info = idbm_recinfo_alloc(MAX_KEYS);
 	if (!info) {
 		snprintf(context->error_str, sizeof(context->error_str),
-			 strerror(ENOMEM));
+			 "%s", strerror(ENOMEM));
 		return ENOMEM;
 	}