From 51b8ca739a989490858f9869512f7a4ff341f966 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 28 Jun 1998 08:04:07 +0000 Subject: 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. --- mail/popper/files/patch-ag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/popper') 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 */ - (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); -- cgit v1.2.3