--- 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; }