Skip to content

Commit

Permalink
Fixed Issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
larrykollar committed Dec 9, 2017
1 parent cbf1904 commit b081a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/file_opml.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static void* export_opml (int argc, char **argv, void *data)

fprintf (file, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" );
if( prefs.savepos )
fprintf(file, "<?tines pos=\"%s\"?>\n", argc>=3?argv[2]:"1" );
fprintf(file, "<?tines pos=\"%s\"?>\n", opml_scroll );
fprintf(file,
"<!-- generated by tines %s (https://github.com/larrykollar/tines) -->\n\
<opml version=\"1.0\">\n", VERSION);
Expand Down
6 changes: 3 additions & 3 deletions src/tines.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int main (int argc, char **argv)
cmdline.def_db = 0;
}
} else {
cmdline.cmd = argv[optind++];
cmdline.cmd = argv[optind];
cmdline.ui = 0;
}

Expand Down Expand Up @@ -430,8 +430,8 @@ o)pen read_only\n\
ui_end ();
break;
case 0: /* -e */
/* pos = (Node *) cli_docmd (cmdline.cmd, pos); */ /* issue #12 */
while (argno <= argc) {
/* pos = (Node *) cli_docmd (cmdline.cmd, pos); */ /* issue #13 */
while (argno < argc) {
pos = (Node *) cli_docmd (argv[argno++], pos);
}
break;
Expand Down

0 comments on commit b081a69

Please sign in to comment.