diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1998-06-28 08:04:07 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1998-06-28 08:04:07 +0000 |
commit | 51b8ca739a989490858f9869512f7a4ff341f966 (patch) | |
tree | 348312fca118fabffa21c00abf4419e9e16795b6 /mail | |
parent | Import of xzip 1.7.0. This is yet another Infocom interpreter. (diff) |
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')
-rw-r--r-- | mail/popper/files/patch-ag | 2 |
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); |