diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-04 02:35:30 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-04 02:35:30 -0800 |
commit | 191221eec575cee682aed01e285aa95a5a2969cb (patch) | |
tree | 1bc31c9423e286e7a7a095c7a39f7d7a7c31ca90 /reader.cpp | |
parent | 27f374a38b74476948497b92f04441c072d4b471 (diff) |
Final cleanup of io_data_t now that I recognize the bizarre way in which it shares output buffers (not sure how this ever worked before)
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1174,7 +1174,7 @@ static void run_pager( wchar_t *prefix, int is_quoted, const std::vector<complet free( escaped_separator ); foo = wcs2str(msg.c_str()); - b_append( in->out_buffer, foo, strlen(foo) ); + in->out_buffer_append(foo, strlen(foo) ); free( foo ); term_donate(); @@ -1190,10 +1190,10 @@ static void run_pager( wchar_t *prefix, int is_quoted, const std::vector<complet io_buffer_read( out ); int nil=0; - b_append( out->out_buffer, &nil, 1 ); + out->out_buffer_append((char *)&nil, 1); wchar_t *tmp; - wchar_t *str = str2wcs((char *)out->out_buffer->buff); + wchar_t *str = str2wcs(out->out_buffer_ptr()); if( str ) { |