Skip to content

Backport !3200 “gfileutils: Use 'write' with 'count' <= max value of its return type” to glib-2-74

Limit count so that write can properly report the number of written bytes.

Limits:

  • POSIX: SSIZE_MAX
  • Windows: INT_MAX

Fixes: #2883 (closed)


Trivial backport of !3200 (merged) to glib-2-74.

Merge request reports