Skip to content

Commit

Permalink
bump version, fix 'has_file' and 'load_file' buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
xtruan committed Mar 13, 2023
1 parent 8ca73a0 commit 23e8fda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flipbip.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "views/flipbip_startscreen.h"
#include "views/flipbip_scene_1.h"

#define FLIPBIP_VERSION "v0.0.7"
#define FLIPBIP_VERSION "v0.0.8"

#define COIN_BTC 0
#define COIN_DOGE 3
Expand Down
8 changes: 4 additions & 4 deletions helpers/flipbip_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ bool flipbip_load_file(char* settings, const FlipBipFile file_type, const char*
} else if(file_type == FlipBipFileDat) {
path = FLIPBIP_DAT_PATH;
} else {
char path_buf[32] = {0};
strcpy(path_buf, FLIPBIP_APP_BASE_FOLDER);
char path_buf[FILE_MAX_PATH_LEN] = {0};
strcpy(path_buf, FLIPBIP_APP_BASE_FOLDER); // 22
strcpy(path_buf + strlen(path_buf), "/");
strcpy(path_buf + strlen(path_buf), file_name);
path = path_buf;
Expand Down Expand Up @@ -95,8 +95,8 @@ bool flipbip_has_file(const FlipBipFile file_type, const char* file_name, const
} else if(file_type == FlipBipFileDat) {
path = FLIPBIP_DAT_PATH;
} else {
char path_buf[32] = {0};
strcpy(path_buf, FLIPBIP_APP_BASE_FOLDER);
char path_buf[FILE_MAX_PATH_LEN] = {0};
strcpy(path_buf, FLIPBIP_APP_BASE_FOLDER); // 22
strcpy(path_buf + strlen(path_buf), "/");
strcpy(path_buf + strlen(path_buf), file_name);
path = path_buf;
Expand Down
2 changes: 1 addition & 1 deletion views/flipbip_scene_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const char* TEXT_INFO = "-Scroll pages with up/down-"
"p6,7) xprv/xpub Extnd Keys"
"p8+) Receive Addresses ";

#define TEXT_SAVE_QR "Save QR"
// #define TEXT_SAVE_QR "Save QR"
#define TEXT_QRFILE_EXT ".qrcode" // 7 chars + 1 null

// bip44_coin, xprv_version, xpub_version, addr_version, wif_version, addr_format
Expand Down

0 comments on commit 23e8fda

Please sign in to comment.