Fixed condition in playfair where xx -> XX XX

This commit is contained in:
Aaron J. McPhall 2011-11-04 10:48:58 -06:00
parent 728152af50
commit 5ee06f79cd
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ run(char* key) {
}
} else if (91 <= tmp && tmp <= 122) {
if (existing) {
if (tmp == buf[0]) {
if (tmp == buf[0] && tmp != 'x') {
buf[1] = 'x';
swapchar(key, buf);
printcrap(buf);