diff --git a/libraries/libstratosphere/source/ncm/ncm_content_meta_database_impl.cpp b/libraries/libstratosphere/source/ncm/ncm_content_meta_database_impl.cpp index 30d5ac10d..9eb272fc7 100644 --- a/libraries/libstratosphere/source/ncm/ncm_content_meta_database_impl.cpp +++ b/libraries/libstratosphere/source/ncm/ncm_content_meta_database_impl.cpp @@ -381,7 +381,7 @@ namespace ams::ncm { /* Read content meta infos from the given offset up to the given count. */ size_t count; - for (count = 0; count < out_meta_info.GetSize() && count + offset <= reader.GetContentMetaCount(); count++) { + for (count = 0; count < out_meta_info.GetSize() && count + offset < reader.GetContentMetaCount(); count++) { out_meta_info[count] = *reader.GetContentMetaInfo(count + offset); }