aboutsummaryrefslogtreecommitdiff
path: root/mail/popper
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1998-06-28 08:04:07 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1998-06-28 08:04:07 +0000
commit51b8ca739a989490858f9869512f7a4ff341f966 (patch)
tree348312fca118fabffa21c00abf4419e9e16795b6 /mail/popper
parentb85e95f56ad5d97c8bcc07702d7c6f7827aa7e0c (diff)
downloadports-51b8ca739a989490858f9869512f7a4ff341f966.tar.gz
ports-51b8ca739a989490858f9869512f7a4ff341f966.zip
Well, it's always a bad idea to introduce new bugs when trying to fix
one... strncat(3) takes a string as its second arg, and a len as its third one, not the other way round. =:-) The ``consistency'' of the C library sucks, of course.
Notes
Notes: svn path=/head/; revision=11573
Diffstat (limited to 'mail/popper')
-rw-r--r--mail/popper/files/patch-ag2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/popper/files/patch-ag b/mail/popper/files/patch-ag
index 9ed0df9ccc06..b86319be3e93 100644
--- a/mail/popper/files/patch-ag
+++ b/mail/popper/files/patch-ag
@@ -45,7 +45,7 @@
/* Append the <CR><LF> */
- (void)strcat(message, "\r\n");
+ len -= strlen(message);
-+ (void)strncat(message, len, "\r\n");
++ (void)strncat(message, "\r\n", len);
/* Send the message to the client */
(void)fputs(message,p->output);