Ethereal-dev: Re: [Ethereal-dev] help dir needs a Makefile.am

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 1 Dec 2003 17:12:23 -0800

On Dec 1, 2003, at 5:08 PM, Guy Harris wrote:

See the attached patch to "help_dlg.c". (It should be fixed to handle open errors and I/O errors, and should probably also try to handle "lines" (for which read paragraphs) of arbitrary size (read into the buffer with "fgets()"; if the string doesn't end with a "\n", double the length of the buffer, and repeat the "fgets()", reading stuff in after the "\n" - repeat until done).

...or just copy the text in large chunks - line endings don't matter to "gtk_text_insert()".