summaryrefslogtreecommitdiff
path: root/vchat-ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-xvchat-ui.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vchat-ui.c b/vchat-ui.c
index e9368b4..526727f 100755
--- a/vchat-ui.c
+++ b/vchat-ui.c
@@ -225,12 +225,12 @@ sb_flush ( struct sb_data *sb ) {
225 sb->entries = NULL; 225 sb->entries = NULL;
226} 226}
227 227
228static void 228/*static void
229sb_clear ( struct sb_data **sb ) { 229sb_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
235static struct sb_entry* 235static struct sb_entry*
236sb_add (struct sb_data *sb, unsigned char *line, time_t when) { 236sb_add (struct sb_data *sb, unsigned char *line, time_t when) {
@@ -272,8 +272,9 @@ void showout (void)
272 272
273void writeout (unsigned char *str) 273void 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