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