- Fix patch from previous commit

- Bump PORTREVISION

PR:		ports/128346
Submitted by:	Jeff Blank <jfb@mr-happy.com> (maintainer)
This commit is contained in:
Thomas Abthorpe 2008-10-26 05:14:38 +00:00
parent d000509e27
commit 9d89fcf25c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=222082
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= qpage
PORTVERSION= 3.3
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= comms
MASTER_SITES= http://www.qpage.org/download/
EXTRACT_SUFX= .tar.Z

View File

@ -1,5 +1,5 @@
--- srvrsnpp.c.orig 1998-10-25 14:55:05.000000000 -0500
+++ srvrsnpp.c 2008-10-18 18:09:44.175331511 -0400
+++ srvrsnpp.c 2008-10-24 11:00:36.226381386 -0400
@@ -523,6 +523,7 @@
char *errmsg;
char *a;
@ -13,7 +13,7 @@
p->created = time(NULL);
(void)sprintf(buff, "%d", pagecount++);
- (void)strcat(p->messageid, buff);
+ m = (void *)malloc(sizeof(*m) * strlen(p->messageid) + sizeof(*m) * strlen(buff));
+ m = (void *)malloc(sizeof(*m) * (strlen(p->messageid) + strlen(buff) + 1));
+ if ( m == NULL ) {
+ message("554 Message failed (out of memory)");
+ qpage_log(LOG_ERR, "snpp(): cannot allocate memory for p->messageid");