Rev 4266 | Rev 4565 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4266 | Rev 4268 | ||
---|---|---|---|
Line 309... | Line 309... | ||
309 | for (j = i+1; j <= 5; j++) { |
309 | for (j = i+1; j <= 5; j++) { |
310 | if (keys[i] == keys[j]) |
310 | if (keys[i] == keys[j]) |
311 | errx(1, "duplicate command keys specified."); |
311 | errx(1, "duplicate command keys specified."); |
312 | } |
312 | } |
313 | if (keys[i] == ' ') |
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 | else { |
315 | else { |
316 | key_write[i][0] = keys[i]; |
316 | key_write[i][0] = keys[i]; |
317 | key_write[i][1] = '\0'; |
317 | key_write[i][1] = '\0'; |
318 | } |
318 | } |
319 | } |
319 | } |