Jeremy Daily discovered that dt2dv cannot process pstricks files with lines longer than 1024 characters. Trivial fix...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10359 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-07-27 09:48:15 +00:00
parent bff7b3c9a8
commit e5d2f76d04

View File

@ -2223,7 +2223,7 @@ xfer_len_string
/* transfer (length and) quoted string from dtl to dvi file, */
/* return number of bytes written to dvi file. */
{
U4 k, k2;
U4 k, k2, lstr_maxsize;
Lstring lstr;
if (debug)
@ -2232,12 +2232,13 @@ xfer_len_string
fprintf (stderr, "(xfer_len_string) : entering xfer_len_string.\n");
}
init_Lstring (&lstr, LSIZE);
/* k[n] : length of special string */
k = get_unsigned (dtl);
lstr_maxsize = (k > LSIZE) ? k : LSIZE;
init_Lstring (&lstr, lstr_maxsize);
if (debug)
{
PRINT_PROGNAME;