mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
7dc19632f3
commit
126b822137
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user