diff --git a/Makefile b/Makefile index 54d5d5a..bbf2cb4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: sxiv -VERSION = git-20110606 +VERSION = git-20110624 CC = gcc DESTDIR = diff --git a/main.c b/main.c index d030226..9c8cf14 100644 --- a/main.c +++ b/main.c @@ -144,9 +144,8 @@ void update_title() { } if (n >= TITLE_LEN) { - win_title[TITLE_LEN - 2] = '.'; - win_title[TITLE_LEN - 3] = '.'; - win_title[TITLE_LEN - 4] = '.'; + for (n = 0; n < 3; n++) + win_title[TITLE_LEN - n - 2] = '.'; } win_set_title(&win, win_title);