diff options
| author | 2026-01-03 18:20:57 -0500 | |
|---|---|---|
| committer | 2026-01-03 18:22:14 -0500 | |
| commit | 5784c8ac521970b432c05385cc829e17358467be (patch) | |
| tree | b77673394c418f3669329bee5ef006e4cbc6fef5 /src/tools | |
| parent | 35f1f1ac56bc61db9ae492bc315af9f62b1cdaaf (diff) | |
unidasm: Allow "0" to be specified as a parameter for numeric options
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/unidasm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/unidasm.cpp b/src/tools/unidasm.cpp index 29af8ced1e9..2d9f5d0e20d 100644 --- a/src/tools/unidasm.cpp +++ b/src/tools/unidasm.cpp @@ -1176,7 +1176,7 @@ void unidasm_data_buffer::decrypt(const unidasm_data_buffer &buffer, bool opcode static int parse_number(const char *curarg, const char *default_format, u32 *value) { int result; - if(curarg[0] == '0') { + if(curarg[0] == '0' && curarg[1] != '\0') { if(tolower((uint8_t)curarg[1]) == 'x') result = sscanf(&curarg[2], "%x", value); else if(tolower((uint8_t)curarg[1]) == 'o') |
