From 126b822137871ddce594af4371d4e9aba3a733e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sat, 29 Oct 2022 04:57:35 +0200 Subject: [PATCH] gfileutils: Use correct type comparison for length length is defined as an unsigned size value, so can't compare it with a signed one --- glib/gfileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gfileutils.c b/glib/gfileutils.c index f0c8f6776..44c22f3ee 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -1143,7 +1143,7 @@ write_to_file (const gchar *contents, { gssize s; - s = write (fd, contents, MIN (length, G_MAXSSIZE)); + s = write (fd, contents, MIN (length, G_MAXSIZE)); if (s < 0) {