summaryrefslogtreecommitdiff
path: root/cmd/cmd_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cmd_read.c')
-rw-r--r--cmd/cmd_read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/cmd_read.c b/cmd/cmd_read.c
index 965ae5a..1a4aa89 100644
--- a/cmd/cmd_read.c
+++ b/cmd/cmd_read.c
@@ -14,8 +14,7 @@ int c_read( cmd_arg_t *arg )
if ( g_buf->buf == NULL )
{
- printf("Buffer mem not allocated\n");
- return -1;
+ buf_resize( g_buf, g_file->blk_size );
}
ret = file_read_blk( g_file, g_buf->buf );