summaryrefslogtreecommitdiff
path: root/net/micq/files/patch-ad
blob: f4e5d68cd184318b4e71c6b49b3cb9311238903f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- util_ui.c.orig	Tue Jan 23 11:49:05 2001
+++ util_ui.c	Wed Jan 24 22:09:24 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' ) ) )
    {