This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
sxiv
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fixed segfault caused by image removal in thumbnail mode
master
Bert Münnich
10 years ago
parent
2fbc21a205
commit
52e56c8924
2 changed files
with
2 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
Makefile
+1
-1
main.c
+ 1
- 1
Makefile
View File
@@ -1,4 +1,4 @@
VERSION = git-201409
0
1
VERSION = git-201409
1
1
PREFIX = /usr/local
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
MANPREFIX = $(PREFIX)/share/man
+ 1
- 1
main.c
View File
@@ -187,7 +187,7 @@ void remove_file(int n, bool manual)
filecnt--;
filecnt--;
if (n < tns.cnt)
if (n < tns.cnt)
tns.cnt--;
tns.cnt--;
if (mode == MODE_THUMB && fileidx >= tns.cnt)
if (mode == MODE_THUMB &&
tns.cnt > 0 &&
fileidx >= tns.cnt)
fileidx = tns.cnt - 1;
fileidx = tns.cnt - 1;
if (n < alternate)
if (n < alternate)
alternate--;
alternate--;
Write
Preview
|
|
|
|
|
|
x
0
0
0:0
Loading…
Cancel
Save