diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/imlib.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/imlib.c b/src/imlib.c index 6f31e96..140e487 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -1183,23 +1183,23 @@ void feh_draw_exif(winwidget w) if ( (buffer[pos] != '\n') && (buffer[pos] != '\0') ) { - info_line[pos2] = buffer[pos]; - } - else if ( buffer[pos] == '\0' ) - { - pos = EXIF_MAX_DATA; /* all data seen */ - info_line[pos2] = '\0'; + info_line[pos2] = buffer[pos]; + } + else if ( buffer[pos] == '\0' ) + { + pos = EXIF_MAX_DATA; /* all data seen */ + info_line[pos2] = '\0'; + break; + } + else + { + info_line[pos2] = '\0'; /* line finished, continue with next line*/ + pos++; + break; } - else - { - info_line[pos2] = '\0'; /* line finished, continue with next line*/ - - pos++; - break; - } - pos++; - pos2++; + pos++; + pos2++; } gib_imlib_get_text_size(fn, info_line, NULL, &line_width, |