- char encoded[256];
- fgets (encoded, MAX_CLUE_LENGTH + 10, infile);
- decrypt_data (line, encoded, p.hashed_master_password);
+ char encrypted[256];
+ /* get a line from the file - each line is a grid row */
+ fgets (encrypted, MAX_CLUE_LENGTH + 10, infile);
+ /* decrypt each line from the file and put the decrypted chars
+ into the grid array */
+ decrypt_data (line, encrypted, p.hashed_master_password);
+ /* finally read the decrypted data into the array */