diff --git a/vigenere.cc b/vigenere.cc index c726269..6880a8d 100644 --- a/vigenere.cc +++ b/vigenere.cc @@ -20,7 +20,7 @@ int main(int argc, char** argv) int ki = 0; for(int pi = 0; text[pi] != 0; ++pi) { - if(text[i] == ' ') + if(text[pi] == ' ') { std::cout << ' '; continue;