Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4264 → Rev 4266

/trunk/uspace/app/tetris/scores.c
131,7 → 131,7
clear_screen();
moveto(10 , 10);
puts("Insert your name: ");
strncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);
str_ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);
i = 6; off = 6;
 
moveto(10 , 28);
195,7 → 195,7
{
int i;
for(i = 0; i < NUMSPOTS; i++) {
strncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);
str_ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);
scores[i].hs_score = (NUMSPOTS - i) * 200;
scores[i].hs_level = (i + 1 > MAXLEVEL?MAXLEVEL:i + 1);
}
/trunk/uspace/app/tetris/tetris.c
311,7 → 311,7
errx(1, "duplicate command keys specified.");
}
if (keys[i] == ' ')
strncpy(key_write[i], "<space>", sizeof key_write[i]);
str_ncpy(key_write[i], "<space>", sizeof key_write[i]);
else {
key_write[i][0] = keys[i];
key_write[i][1] = '\0';