Skip to content

Commit

Permalink
applist: Use sceClibSnprintf instead of sceClibStrncpy
Browse files Browse the repository at this point in the history
  • Loading branch information
joel16 committed Dec 30, 2021
1 parent 131a28b commit 5950cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/applist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ namespace AppList {
child.pageId = icon.pageId;
child.pageNo = icon.pageNo;
child.pos = icon.pos;
sceClibStrncpy(child.title, icon.title, 128);
sceClibStrncpy(child.titleId, icon.titleId, 16);
sceClibSnprintf(child.title, 128, icon.title);
sceClibSnprintf(child.titleId, 16, icon.titleId);
}
entries.icons.push_back(icon);
entries.child_apps.push_back(child);
Expand Down

0 comments on commit 5950cbe

Please sign in to comment.