summaryrefslogtreecommitdiffstats
path: root/commands/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/mem.c')
-rw-r--r--commands/mem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/mem.c b/commands/mem.c
index a5eea36049..88af55c1b8 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -483,6 +483,9 @@ static int do_mem_cp(struct command *cmdtp, int argc, char *argv[])
}
count -= r;
+
+ if (ctrlc())
+ goto out;
}
if (count) {