From 60f08b0a4676943651bc7b66cb8531325b1c6132 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Tue, 24 May 2016 00:00:45 +0100 Subject: Added resize c --- cmd/cmd_read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd/cmd_read.c') 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 ); -- cgit v1.2.3