gfileutils: Use correct type comparison for length

length is defined as an unsigned size value, so can't compare it with a
signed one
This commit is contained in:
Marco Trevisan (Treviño) 2022-10-29 04:57:35 +02:00
parent 7dc19632f3
commit 126b822137

View File

@ -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)
{