[PATCH] wispr: Do not pass a negative error status to 'strerror'.

Grant Erickson <[email protected]> Tue, 25 Mar 2025 11:38:51 -0700
Newsgroups dev.linux.lists.connman
Message-ID <049cfab18dd9dd33a8bedcc5766f16ffca27b87d.1742927708.git.gerickson@nuovations.com>
Fixes: 52546061c590 ("wispr: Refactor 'wispr_portal_web_result' to leverage 'GError'.")
---
 src/wispr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wispr.c b/src/wispr.c
index 21657f375473..a40cf353b54e 100644
--- a/src/wispr.c
+++ b/src/wispr.c
@@ -1735,7 +1735,7 @@ int __connman_wispr_cancel(struct connman_service *service,
 	cancel_connman_wispr_portal_context(wp_context);
 
 	portal_manage_failure_status(wp_context, -ECANCELED,
-		strerror(-ECANCELED));
+		strerror(ECANCELED));
 
 	wispr_portal_context_unref(wp_context);
 
-- 
2.45.0