pkgsrc/chat/centericq/patches/patch-aw

24 lines
647 B
Text
Raw Normal View History

$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();
}