Skip to content

Commit

Permalink
Fix option parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed Apr 22, 2020
1 parent f9e968b commit 8386fcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Programs/MiKTeX/Yap/MFC/yap-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */

#define MIKTEX_COMP_J2000_VERSION 7416
#define MIKTEX_COMP_J2000_VERSION 7417

#include <miktex/Version>
4 changes: 2 additions & 2 deletions Programs/MiKTeX/Yap/MFC/yap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void ParseYapCommandLine(const char* lpszArguments, YapCommandLineInfo& cmdInfo)
case OPT_FIND_SRC_SPECIAL:
{
char* lpszFileName = nullptr;
cmdInfo.sourceLineNum = strtol(popt.GetOptArg().c_str(), &lpszFileName, 10);
cmdInfo.sourceLineNum = strtol(optArg.c_str(), &lpszFileName, 10);
if (lpszFileName != nullptr)
{
while (*lpszFileName == ' ')
Expand All @@ -152,7 +152,7 @@ void ParseYapCommandLine(const char* lpszArguments, YapCommandLineInfo& cmdInfo)
}

case OPT_GOTO_HYPER_LABEL:
cmdInfo.hyperLabel = popt.GetOptArg();
cmdInfo.hyperLabel = optArg;
break;

case OPT_PRINT:
Expand Down

0 comments on commit 8386fcd

Please sign in to comment.