Changeset 6eb2e96 in mainline for uspace/app
- Timestamp:
- 2009-04-10T07:53:54Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cc6a52
- Parents:
- f4b1535
- Location:
- uspace/app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/ls/ls.c
rf4b1535 r6eb2e96 183 183 getcwd(buff, PATH_MAX); 184 184 else 185 str_ ncpy(buff, argv[1], PATH_MAX);185 str_cpy(buff, PATH_MAX, argv[1]); 186 186 187 187 scope = ls_scope(buff); -
uspace/app/tetris/scores.c
rf4b1535 r6eb2e96 118 118 static void copyhiscore(int dest, int src) 119 119 { 120 strcpy(scores[dest].hs_name, scores[src].hs_name); 120 str_cpy(scores[dest].hs_name, STR_BOUNDS(MAXLOGNAME) + 1, 121 scores[src].hs_name); 121 122 scores[dest].hs_score = scores[src].hs_score; 122 123 scores[dest].hs_level = scores[src].hs_level; … … 132 133 moveto(10 , 10); 133 134 puts("Insert your name: "); 134 str_ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME); 135 str_cpy(scores[NUMSPOTS - 1].hs_name, STR_BOUNDS(MAXLOGNAME) + 1, 136 "Player"); 135 137 i = 6; off = 6; 136 138 … … 196 198 int i; 197 199 for(i = 0; i < NUMSPOTS; i++) { 198 str_ ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);200 str_cpy(scores[i].hs_name, STR_BOUNDS(MAXLOGNAME) + 1, "HelenOS Team"); 199 201 scores[i].hs_score = (NUMSPOTS - i) * 200; 200 202 scores[i].hs_level = (i + 1 > MAXLEVEL?MAXLEVEL:i + 1); -
uspace/app/tetris/tetris.c
rf4b1535 r6eb2e96 312 312 } 313 313 if (keys[i] == ' ') 314 str_ ncpy(key_write[i], "<space>", sizeof key_write[i]);314 str_cpy(key_write[i], sizeof key_write[i], "<space>"); 315 315 else { 316 316 key_write[i][0] = keys[i];
Note:
See TracChangeset
for help on using the changeset viewer.