Fix bug in r_str_scanf parsing %L formats

This commit is contained in:
pancake 2024-03-18 07:29:38 +01:00
parent 41d4a03363
commit 4b72abc8c5
1 changed files with 1 additions and 1 deletions

View File

@ -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*);