Skip to content

Commit 1ca0c52

Browse files
authored
Merge pull request #151 from nobodywasishere/copying-condition
Add source code license and link to github to system app
2 parents b4fb889 + 1a6de33 commit 1ca0c52

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/displayapp/screens/SystemInfo.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
112112
}
113113

114114
std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
115-
strncpy(t3, "Hello from\nthe developer!", 27);
115+
sprintf(t3, "Hello from\nthe developer!\n"
116+
"Software Licensed\n"
117+
"under the terms of\n"
118+
"the GNU General\n"
119+
"Public License v3\n"
120+
"Source code:\n"
121+
"https://github.com/\n"
122+
" JF002/Pinetime");
116123
return std::unique_ptr<Screen>(new Screens::Label(app, t3));
117124
}

src/displayapp/screens/SystemInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace Pinetime {
4343

4444
char t1[200];
4545
char t2[200];
46-
char t3[30];
46+
char t3[200];
4747

4848
ScreenList<3> screens;
4949
std::unique_ptr<Screen> CreateScreen1();

0 commit comments

Comments
 (0)