Fix bug in r_str_scanf parsing %L formats
This commit is contained in:
parent
41d4a03363
commit
4b72abc8c5
|
@ -333,7 +333,7 @@ R_API int r_str_scanf(const char *buffer, const char *format, ...) {
|
|||
*long_ptr = (long) strtol (buf_ptr, &end_ptr, base);
|
||||
} else if ('L' == length_mod) {
|
||||
ut64_ptr = va_arg (args, ut64*);
|
||||
_BSCANF_CHECK_NULL (long_ptr);
|
||||
_BSCANF_CHECK_NULL (ut64_ptr);
|
||||
*ut64_ptr = (ut64) strtoll (buf_ptr, &end_ptr, base);
|
||||
} else if ('h' == length_mod) {
|
||||
short_ptr = va_arg (args, short*);
|
||||
|
|
Loading…
Reference in New Issue