#define FREE(x) safe_free(x)
#define ISSPACE isspace
#define strfcpy(a,b,c) {if (c) {strncpy(a,b,c);a[c-1]=0;}}
-#define STRING 128
+#define LONG_STRING 1024
#include "rfc822.h"
#endif
"bad address spec"
};
-void rfc822_dequote_comment (char *s)
+static void rfc822_dequote_comment (char *s)
{
char *w = s;
char *comment, size_t *commentlen, size_t commentmax,
ADDRESS *addr)
{
- char token[STRING];
+ char token[LONG_STRING];
size_t tokenlen = 0;
SKIPWS (s);
char *comment, size_t *commentlen, size_t commentmax,
ADDRESS *addr)
{
- char token[STRING];
+ char token[LONG_STRING];
size_t tokenlen = 0;
s = parse_address (s, token, &tokenlen, sizeof (token) - 1, comment, commentlen, commentmax, addr);
{
int ws_pending, nl;
const char *begin, *ps;
- char comment[STRING], phrase[STRING];
+ char comment[LONG_STRING], phrase[LONG_STRING];
size_t phraselen = 0, commentlen = 0;
ADDRESS *cur, *last = NULL;
{
if (*pc == '"' || *pc == '\\')
{
- if (!buflen)
- goto done;
*pbuf++ = '\\';
buflen--;
}