Changeset 095003a8 in mainline for uspace/app/tetris/scores.c


Ignore:
Timestamp:
2009-04-09T22:32:23Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f4b1535
Parents:
7afb4a5
Message:

strdup() → str_dup()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/scores.c

    r7afb4a5 r095003a8  
    132132        moveto(10 , 10);
    133133        puts("Insert your name: ");
    134         strncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);
     134        str_ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);
    135135        i = 6; off = 6;
    136136
     
    196196        int i;
    197197        for(i = 0; i < NUMSPOTS; i++) {
    198                 strncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);
     198                str_ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);
    199199                scores[i].hs_score = (NUMSPOTS - i) * 200;     
    200200                scores[i].hs_level = (i + 1 > MAXLEVEL?MAXLEVEL:i + 1);
Note: See TracChangeset for help on using the changeset viewer.