summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-09-29 11:25:19 +0100
committerFreeArtMan <dos21h@gmail.com>2019-09-29 11:25:19 +0100
commitae51162f5f809937b36b09c186ff5348e861e347 (patch)
treef37a0a63730355c74fd4a4017dbd6c21b56e702b /cmd
parentf85459ba90ab2725e017b1c278e708127b264a19 (diff)
downloadihe-ae51162f5f809937b36b09c186ff5348e861e347.tar.gz
ihe-ae51162f5f809937b36b09c186ff5348e861e347.zip
Fixed size issues for dump commands
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cmd_dump.c2
-rw-r--r--cmd/cmd_dumpx.c4
2 files changed, 3 insertions, 3 deletions
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; i<g_buf->size(); i++)
+ for (i=0; i<g_buf->cursize(); 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; i<g_buf->size(); i+=16)
+ for (i=0; i<g_buf->cursize(); i+=16)
{
for (j=i; j<i+16; j++)
{
- if ( j<g_buf->size() )
+ if ( j<g_buf->cursize() )
{
char c;
g_buf->getc(j,&c);