From ae51162f5f809937b36b09c186ff5348e861e347 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 29 Sep 2019 11:25:19 +0100 Subject: Fixed size issues for dump commands --- cmd/cmd_dump.c | 2 +- cmd/cmd_dumpx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/cmd_dump.c b/cmd/cmd_dump.c index 999822e..1f6ac41 100644 --- a/cmd/cmd_dump.c +++ b/cmd/cmd_dump.c @@ -18,7 +18,7 @@ int c_dump( cmd_arg_t *arg ) return -1; } - for (i=0; isize(); i++) + for (i=0; icursize(); i++) { char c; g_buf->getc(i,&c); diff --git a/cmd/cmd_dumpx.c b/cmd/cmd_dumpx.c index ecca20c..452010f 100644 --- a/cmd/cmd_dumpx.c +++ b/cmd/cmd_dumpx.c @@ -21,11 +21,11 @@ int c_dumpx( cmd_arg_t *arg ) return -1; } - for (i=0; isize(); i+=16) + for (i=0; icursize(); i+=16) { for (j=i; jsize() ) + if ( jcursize() ) { char c; g_buf->getc(j,&c); -- cgit v1.2.3