diff options
author | hwspeedy <ns@bigbear.dk> | 2024-05-24 12:27:18 +0200 |
---|---|---|
committer | hwspeedy <ns@bigbear.dk> | 2024-05-24 12:27:18 +0200 |
commit | 4b77461f6643447a5b4cb0e133c8eaf8dd1cef72 (patch) | |
tree | 0f3ba1835730577bae605f95070754f2a313905f /modules/devices/riscv/riscv_data.c | |
parent | a8ccc2aa89c78108566c67b9e853797ea451f9c8 (diff) |
FIX GCC warnings arch/GCC version related
Diffstat (limited to 'modules/devices/riscv/riscv_data.c')
-rw-r--r-- | modules/devices/riscv/riscv_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices/riscv/riscv_data.c b/modules/devices/riscv/riscv_data.c index 526067d3..5af20103 100644 --- a/modules/devices/riscv/riscv_data.c +++ b/modules/devices/riscv/riscv_data.c @@ -174,7 +174,7 @@ static int riscv_isa_next(const char *isap, char *flag) { #define FSTR_SIZE 1024 #define RV_CHECK_FOR(e) ( strncasecmp(ps, e, 2) == 0 ) -#define ADD_EXT_FLAG(ext) el = strlen(ext); strncpy(pd, ext, el); strncpy(pd + el, " ", 1); pd += el + 1; +#define ADD_EXT_FLAG(ext) el = strlen(ext); strncpy(pd, ext, el); pd[el]=' '; pd[el+1]=0; pd += el + 1; char *riscv_isa_to_flags(const char *isa) { char *flags = NULL, *ps = (char*)isa, *pd = NULL; char flag_buf[64] = ""; |