version 1.200, 2014/03/20 02:57:28 |
version 1.202, 2014/03/23 12:11:18 |
|
|
#include <string.h> |
#include <string.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
|
#include "mandoc_aux.h" |
#include "libroff.h" |
#include "libroff.h" |
#include "libmandoc.h" |
#include "libmandoc.h" |
|
|
Line 655 roff_parsetext(char **bufp, size_t *szp, int pos, int |
|
Line 656 roff_parsetext(char **bufp, size_t *szp, int pos, int |
|
|
|
/* Spring the input line trap. */ |
/* Spring the input line trap. */ |
if (1 == roffit_lines) { |
if (1 == roffit_lines) { |
isz = asprintf(&p, "%s\n.%s", *bufp, roffit_macro); |
isz = mandoc_asprintf(&p, "%s\n.%s", *bufp, roffit_macro); |
if (-1 == isz) { |
|
perror(NULL); |
|
exit((int)MANDOCLEVEL_SYSERR); |
|
} |
|
free(*bufp); |
free(*bufp); |
*bufp = p; |
*bufp = p; |
*szp = isz + 1; |
*szp = isz + 1; |