Don't try to write very long strings to portable files. The format
authorBen Pfaff <blp@gnu.org>
Mon, 23 Jul 2007 05:11:58 +0000 (05:11 +0000)
committerBen Pfaff <blp@gnu.org>
Mon, 23 Jul 2007 05:11:58 +0000 (05:11 +0000)
commit67ab74956960acef3c4e86886504b93253eb3e4e
treedde769a5228aace6449903fac024845220774a2f
parent8c3d1da71a10a31270d669d7410e52a7c66ed396
Don't try to write very long strings to portable files.  The format
does not support it.

(MAX_POR_WIDTH): New macro.
(pfm_open_writer): Limit output width to MAX_POR_WIDTH.
(write_format): Add arg to take width to resize format to.
(write_value): Limit width of value written to MAX_POR_WIDTH.
(write_variables): Limit width of variable and its output formats
to MAX_POR_WIDTH.
src/data/ChangeLog
src/data/por-file-writer.c