projects
/
img2tiles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eee59ca
)
correction
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 17 Feb 2019 14:38:29 +0000
(16:38 +0200)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 17 Feb 2019 14:38:29 +0000
(16:38 +0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
2f011c9
..
5d9e19c
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-103,7
+103,7
@@
int proc_image(const char *fname)
basename = alloca(strlen(fname) + 1);
strcpy(basename, fname);
if((suffix = strrchr(basename, '/'))) {
- basename = suffix;
+ basename = suffix + 1;
}
if((suffix = strchr(basename, '.'))) {
*suffix = 0;