Use maxlines instead of hardcoding the default value. Exit if execv() fails.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | { | ... | ... |
-
Please register or sign in to post a comment