diff options
author | FreeArtMan <dos21h@gmail.com> | 2016-05-24 00:00:45 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2016-05-24 00:00:45 +0100 |
commit | 60f08b0a4676943651bc7b66cb8531325b1c6132 (patch) | |
tree | 5cea9737ea510f579cefa6a4712bf8caf0577da7 /cmd/cmd_read.c | |
parent | cb141140579d796ae5cafe6da52b4f0b87be6a84 (diff) | |
download | ihe-60f08b0a4676943651bc7b66cb8531325b1c6132.tar.gz ihe-60f08b0a4676943651bc7b66cb8531325b1c6132.zip |
Added resize c
Diffstat (limited to 'cmd/cmd_read.c')
-rw-r--r-- | cmd/cmd_read.c | 3 |
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 ); |