Signed-off-by: Andrey Smirnov <[email protected]>
---
commands/memcpy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/memcpy.c b/commands/memcpy.c
index 803f06e57..ef25fb7b2 100644
--- a/commands/memcpy.c
+++ b/commands/memcpy.c
@@ -86,7 +86,7 @@ static int do_memcpy(int argc, char *argv[])
while (count > 0) {
int now, r;
- now = min((loff_t)RW_BUF_SIZE, count);
+ now = min_t(loff_t, RW_BUF_SIZE, count);
r = read(sourcefd, buf, now);
if (r < 0) {
--
2.20.1
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox