summaryrefslogtreecommitdiff
path: root/chat/micq/patches/patch-ab
blob: 4d0d9a9b38d0291da0f182d414244c550be00bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ab,v 1.2 2001/11/28 17:30:39 wiz Exp $

--- src/mreadline.c.orig	Thu Nov 22 00:29:15 2001
+++ src/mreadline.c
@@ -166,9 +166,10 @@
     }
 
     if ((uin = TabGetNext ()))
-        sprintf (s, "%s %s/", message_cmd, UIN2Name (uin));
+        snprintf (s, sizeof(s), "%s %s/", message_cmd, UIN2Name (uin));
     else
-        sprintf (s, "%s ", message_cmd);
+        snprintf (s, sizeof(2), "%s ", message_cmd);
+
 
     clen = cpos = strlen (s);
     R_undraw ();