Skip to content

Commit

Permalink
only read length of access key from file
Browse files Browse the repository at this point in the history
  • Loading branch information
svenpaulsen committed Nov 15, 2023
1 parent a886ef8 commit f3e9210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ int read_access_key_file(const char *file_name, char *access_key)
{
return -1;
}
fgets(access_key, 128, file);
fgets(access_key, 45, file);
int error = ferror(file);
fclose(file);
return error;
Expand Down

0 comments on commit f3e9210

Please sign in to comment.