reading hist always stopped after the first line

This commit is contained in:
John Cupitt 2009-10-12 16:16:25 +00:00
parent f9adf20874
commit faba74f016
2 changed files with 6 additions and 1 deletions

View File

@ -58,6 +58,7 @@
(thanks Christoph)
- im_generate() checks that im_demand_hint() has been called for this image
- im_jpeg2vips.c, set scale_num on shrink (thanks Guido)
- heh argh reading history always stopped after the first line (thanks Haida)
25/3/09 started 7.18.0
- revised version numbers

View File

@ -7,6 +7,8 @@
* - block mmaps of nodata images
* 12/5/09
* - fix signed/unsigned warnings
* 12/10/09
* - heh argh reading history always stopped after the first line
*/
/*
@ -689,8 +691,10 @@ set_history( IMAGE *im, char *history )
history_list = NULL;
for( p = history; *p; p = q ) {
if( (q = strchr( p, '\n' )) )
if( (q = strchr( p, '\n' )) ) {
*q = '\0';
q += 1;
}
else
q = p + strlen( p );