Skip to content

Commit a4b971f

Browse files
author
ldg-github-ci
committed
[update] Branch develop | Commit 29d83fc40fd48dba3af19bb2788568b40e236334
1 parent 81eb658 commit a4b971f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

include/eth_internals.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ void amountToString(const uint8_t *amount,
207207
uint8_t ticker_len = strnlen(ticker, MAX_TICKER_LEN);
208208

209209
memcpy(out_buffer, ticker, MIN(out_buffer_size, ticker_len));
210+
if (ticker_len > 0) {
211+
out_buffer[ticker_len++] = ' ';
212+
}
210213

211214
if (adjustDecimals(tmp_buffer,
212215
amount_len,

include/eth_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <stdbool.h>
88
#include <string.h>
99

10-
#define MAX_TICKER_LEN 12 // 10 characters + ' ' + '\0'
10+
#define MAX_TICKER_LEN 11 // 10 characters + '\0'
1111

1212
#define ADDRESS_LENGTH 20
1313

include/eth_plugin_interface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ typedef enum {
1212
ETH_PLUGIN_INTERFACE_VERSION_2 = 2,
1313
ETH_PLUGIN_INTERFACE_VERSION_3 = 3,
1414
ETH_PLUGIN_INTERFACE_VERSION_4 = 4,
15-
ETH_PLUGIN_INTERFACE_VERSION_LATEST = 5,
15+
ETH_PLUGIN_INTERFACE_VERSION_5 = 5,
16+
ETH_PLUGIN_INTERFACE_VERSION_LATEST = 6
1617
} eth_plugin_interface_version_t;
1718

1819
typedef enum {

0 commit comments

Comments
 (0)