diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/imlib.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/src/imlib.c b/src/imlib.c index 290ec8f..dfb79aa 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -679,11 +679,12 @@ void feh_draw_exif(winwidget w)  	fn = feh_load_font(w); -	if (buffer == NULL) +	if (buffer[0] == '\0')  	{  		snprintf(buffer, EXIF_MAX_DATA, "%s", estrdup("Failed to run exif command")); -		gib_imlib_get_text_size(fn, &buffer[0], NULL, &width, &height, IMLIB_TEXT_TO_RIGHT); -		no_lines = 1; +		gib_imlib_get_text_size(fn, buffer, NULL, &width, &height, IMLIB_TEXT_TO_RIGHT); +		info_buf[no_lines] = estrdup(buffer); +		no_lines++;  	}  	else  	{ | 
