blob: bd53677ca06488ff5a6c8bced5159533c0233df6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-aw,v 1.1 2007/07/19 00:43:42 lkundrak Exp $
--- src/hooks/aimhook.cc.orig 2007-07-19 02:24:38.000000000 +0200
+++ src/hooks/aimhook.cc
@@ -32,6 +32,8 @@
#include "imlogger.h"
#include "eventmanager.h"
+#define NOTIFBUF 512
+
aimhook ahook;
aimhook::aimhook()
@@ -293,7 +295,8 @@ void aimhook::loadprofile() {
if(access(fname.c_str(), R_OK)) {
char sbuf[512];
- sprintf(sbuf, _("I do really enjoy the default AIM profile of centericq %s."), VERSION);
+ snprintf(sbuf, 512, _("I do really enjoy the default AIM profile of centericq %s."), VERSION);
+ sbuf[511] = '\0';
profile.info = sbuf;
saveprofile();
}
|