summaryrefslogtreecommitdiff
path: root/chat/micq/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'chat/micq/patches/patch-ad')
-rw-r--r--chat/micq/patches/patch-ad42
1 files changed, 42 insertions, 0 deletions
diff --git a/chat/micq/patches/patch-ad b/chat/micq/patches/patch-ad
new file mode 100644
index 00000000000..ec798279762
--- /dev/null
+++ b/chat/micq/patches/patch-ad
@@ -0,0 +1,42 @@
+$NetBSD: patch-ad,v 1.1 2001/01/31 19:10:12 tron Exp $
+
+--- util_ui.c.orig Tue Jan 23 17:49:05 2001
++++ util_ui.c Wed Jan 31 20:07:47 2001
+@@ -102,7 +102,7 @@
+ assert( 2048 >= strlen( str ) );
+
+ va_start( args, str );
+- vsprintf( buf, str, args );
++ vsnprintf( buf, sizeof(buf), str, args );
+ k = write( fd, buf, strlen( buf ) );
+ if ( k != strlen( buf ) )
+ {
+@@ -292,7 +292,7 @@
+
+ va_start( args, str );
+ #ifndef CURSES_UI
+- vsprintf( buf, str, args );
++ vsnprintf( buf, sizeof(buf), str, args );
+ str2 = buf;
+ while ( (void *) NULL != ( str1 = strchr( str2, '\x1b' ) ) )
+ {
+@@ -423,19 +423,6 @@
+ thetime=localtime(&p);
+
+ M_print( "%.02d:%.02d:%.02d",thetime->tm_hour,thetime->tm_min,thetime->tm_sec );
+-}
+-
+-static void remove_tab( int index )
+-{
+- int j;
+-
+- if ( tab_array[ index ] != NULL ) {
+- free( tab_array[ index ] );
+- }
+- for ( j=index; j+1<TAB_SLOTS; j++ ) {
+- tab_array[ j ] = tab_array[ j+1 ];
+- }
+- tab_array[ TAB_SLOTS ] = NULL;
+ }
+
+ void add_tab( DWORD uin )