git://git.nikiroo.be
/
nsub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0753049
)
nsub_main: fix output ext detection
author
Niki Roo
<niki@nikiroo.be>
Thu, 26 May 2022 11:50:16 +0000
(13:50 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Thu, 26 May 2022 11:50:16 +0000
(13:50 +0200)
src/nsub/nsub_main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/nsub/nsub_main.c
b/src/nsub/nsub_main.c
index 27d4be5528f81bbefe96ebca45d637cc0215e3d2..c11e8b6b46f9605928abea9c8b43f01b629a2bd5 100644
(file)
--- a/
src/nsub/nsub_main.c
+++ b/
src/nsub/nsub_main.c
@@
-77,7
+77,7
@@
int main(int argc, char **argv) {
}
out_file = argv[++i];
if (to == NSUB_FMT_UNKNOWN) {
- char *ext = strrchr(arg, '.');
+ char *ext = strrchr(arg
v[i]
, '.');
if (ext) {
ext++;
to = nsub_parse_fmt(ext, 0);