diff options
Diffstat (limited to 'cmd/cmd_close.c')
-rw-r--r-- | cmd/cmd_close.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmd/cmd_close.c b/cmd/cmd_close.c index d5a03b3..3db6a70 100644 --- a/cmd/cmd_close.c +++ b/cmd/cmd_close.c @@ -5,7 +5,7 @@ #include "libcmd/cmd_parse.h" extern file_t *g_file; -extern buf_t *g_buf; +extern Buf *g_buf; extern int g_flags; /* @@ -23,10 +23,12 @@ int c_close( cmd_arg_t *arg ) } // clean buf - if ( g_buf->buf != NULL ) + if ( !g_buf->isempty() ) { - buf_zero( g_buf ); - buf_free( g_buf ); + //buf_zero( g_buf ); + g_buf->zero(); + //buf_free( g_buf ); + g_buf->empty(); } return 0; |