Changeset 095003a8 in mainline for uspace/app/tetris
- Timestamp:
- 2009-04-09T22:32:23Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4b1535
- Parents:
- 7afb4a5
- Location:
- uspace/app/tetris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/scores.c
r7afb4a5 r095003a8 132 132 moveto(10 , 10); 133 133 puts("Insert your name: "); 134 str ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);134 str_ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME); 135 135 i = 6; off = 6; 136 136 … … 196 196 int i; 197 197 for(i = 0; i < NUMSPOTS; i++) { 198 str ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);198 str_ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME); 199 199 scores[i].hs_score = (NUMSPOTS - i) * 200; 200 200 scores[i].hs_level = (i + 1 > MAXLEVEL?MAXLEVEL:i + 1); -
uspace/app/tetris/tetris.c
r7afb4a5 r095003a8 312 312 } 313 313 if (keys[i] == ' ') 314 str ncpy(key_write[i], "<space>", sizeof key_write[i]);314 str_ncpy(key_write[i], "<space>", sizeof key_write[i]); 315 315 else { 316 316 key_write[i][0] = keys[i];
Note:
See TracChangeset
for help on using the changeset viewer.
