Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ bool do_rand( void *output, size_t len ) {
*/
static bool update_private_key( unsigned char *private_key,
size_t len_private_key, void *filename) {
FILE *f = fopen( filename, "r+" );
FILE *f = fopen( filename, "rb+" );
if (!f) {
/* Open failed, possibly because the file didn't exist */
f = fopen( filename, "wb" );
Expand Down