Skip to content

Commit

Permalink
Fixed bug in GitAPI data validation
Browse files Browse the repository at this point in the history
  • Loading branch information
CompSciOrBust committed Oct 31, 2019
1 parent 3b4ceab commit 695658d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ INCLUDES := include
#ROMFS := romfs
APP_TITLE := Amiigo
APP_AUTHOR := CompSciOrBust
APP_VERSION := 1.4.2
APP_VERSION := 1.4.3

#---------------------------------------------------------------------------------
# options for code generation
Expand Down
2 changes: 1 addition & 1 deletion source/UpdaterUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ bool UpdaterUI::CheckForNewVersion()
//Get the release tag string from the data
GitAPIData = json::parse(Data);
//Check if GitAPI gave us a release tag otherwise we'll crash
if(GitAPIData.count("0") == 0)
if(Data.length() < 300)
{
//User is probably rate limited.
UpdateState = 999;
Expand Down

0 comments on commit 695658d

Please sign in to comment.