termux-packages/packages/frogcomposband/util.c.patch
Archenoth d38fff8093 Added frogcomposband package build
This game is in the main repository due to the custom license that
Angband used to have that this project inherited
2020-08-25 08:07:21 -06:00

23 lines
702 B
Diff

diff --git a/src/util.c b/src/util.c
index dcfebf9c..977611c6 100644
--- a/src/util.c
+++ b/src/util.c
@@ -977,7 +977,7 @@ errr fd_read(int fd, char *buf, huge n)
while (n >= 16384)
{
/* Read a piece */
- if (_read(fd, buf, 16384) != 16384) return (1);
+ if (read(fd, buf, 16384) != 16384) return (1);
/* Shorten the task */
buf += 16384;
@@ -1010,7 +1010,7 @@ errr fd_write(int fd, cptr buf, huge n)
while (n >= 16384)
{
/* Write a piece */
- if (_write(fd, buf, 16384) != 16384) return (1);
+ if (write(fd, buf, 16384) != 16384) return (1);
/* Shorten the task */
buf += 16384;