nsxivf52603b
Small refactoring
+3 −4
2 files changed
| @@ -1,6 +1,6 @@ | |||
| 1 | 1 | all: sxiv | |
| 2 | 2 | ||
| 3 | − | VERSION = git-20110606 | |
| 3 | + | VERSION = git-20110624 | |
| 4 | 4 | ||
| 5 | 5 | CC = gcc | |
| 6 | 6 | DESTDIR = | |
| @@ -144,9 +144,8 @@ void update_title() { | |||
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | 146 | if (n >= TITLE_LEN) { | |
| 147 | − | win_title[TITLE_LEN - 2] = '.'; | |
| 148 | − | win_title[TITLE_LEN - 3] = '.'; | |
| 149 | − | win_title[TITLE_LEN - 4] = '.'; | |
| 147 | + | for (n = 0; n < 3; n++) | |
| 148 | + | win_title[TITLE_LEN - n - 2] = '.'; | |
| 150 | 149 | } | |
| 151 | 150 | ||
| 152 | 151 | win_set_title(&win, win_title); | |