diff options
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-x | vchat-ui.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -225,12 +225,12 @@ sb_flush ( struct sb_data *sb ) { | |||
225 | sb->entries = NULL; | 225 | sb->entries = NULL; |
226 | } | 226 | } |
227 | 227 | ||
228 | static void | 228 | /*static void |
229 | sb_clear ( struct sb_data **sb ) { | 229 | sb_clear ( struct sb_data **sb ) { |
230 | sb_flush(*sb); | 230 | sb_flush(*sb); |
231 | free( *sb ); | 231 | free( *sb ); |
232 | *sb = NULL; | 232 | *sb = NULL; |
233 | } | 233 | }*/ |
234 | 234 | ||
235 | static struct sb_entry* | 235 | static struct sb_entry* |
236 | sb_add (struct sb_data *sb, unsigned char *line, time_t when) { | 236 | sb_add (struct sb_data *sb, unsigned char *line, time_t when) { |
@@ -272,8 +272,9 @@ void showout (void) | |||
272 | 272 | ||
273 | void writeout (unsigned char *str) | 273 | void writeout (unsigned char *str) |
274 | { | 274 | { |
275 | int i; | ||
275 | sb_add(sb_out,str,time(NULL)); | 276 | sb_add(sb_out,str,time(NULL)); |
276 | int i = 1 + gettextwidth( str ); | 277 | i = 1 + gettextwidth( str ); |
277 | if( i > outputwidth_desired ) outputwidth_desired = i; | 278 | if( i > outputwidth_desired ) outputwidth_desired = i; |
278 | } | 279 | } |
279 | 280 | ||