ports/misc/hfsplus/patches/patch-src_copyout_c

15 lines
481 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Fix passing &size to int *lenptr
Index: src/copyout.c
--- src/copyout.c.orig
+++ src/copyout.c
@@ -365,7 +365,7 @@ int do_text(volume* vol, hfsp_fork_raw *fork, UInt8 fo
{
UInt32 block = blockiter_curr(&iter);
int result = volume_readinbuf(vol, buf, block);
- size_t size = total > blksize ? blksize : total;
+ int size = total > blksize ? blksize : total;
size_t bytes;
char *latin1, *ptr, *ptrend;
if (result)