Commit 37b56aa2 37b56aa219f0ea138eb1e848007abef7c6c60702 by Sergey Poznyakoff

Use maxlines instead of hardcoding the default value. Exit if execv() fails.

1 parent 84acb011
...@@ -158,7 +158,7 @@ expand_escape (char **pp, message_t msg, char *cr, struct obstack *stk) ...@@ -158,7 +158,7 @@ expand_escape (char **pp, message_t msg, char *cr, struct obstack *stk)
158 if (size == 0) 158 if (size == 0)
159 size = 400; 159 size = 400;
160 if (lncount == 0) 160 if (lncount == 0)
161 lncount = 5; 161 lncount = maxlines;
162 if (message_get_body (msg, &body) == 0 162 if (message_get_body (msg, &body) == 0
163 && body_get_stream (body, &stream) == 0) 163 && body_get_stream (body, &stream) == 0)
164 { 164 {
......