commit 24226e5581dfeeeb8203456d5bc647a9a96afc3e parent 108fd04264d96844b7e1eabd8501a504a39aa6ce Author: Michael Savage <mikejsavage@gmail.com> Date: Sun May 28 19:16:49 +0300 Oops Diffstat:
launcher/main.cc | | | 2 | +- |
diff --git a/launcher/main.cc b/launcher/main.cc @@ -120,7 +120,7 @@ static bool parse_manifest( std::map< std::string, ManifestEntry > * manifest_pt const str< 16 > file_size( "{}", matches[ 2 ] ); u64 size = u64( strtonum( file_size.c_str(), 1, S64_MAX, NULL ) ); - if( matches[ 0 ].n > file_name.len() || matches[ 2 ].n > file_size.len() || file_size == 0 ) { + if( matches[ 0 ].n > file_name.len() || matches[ 2 ].n > file_size.len() || size == 0 ) { manifest.clear(); return false; }