always non negative (#16434)

This commit is contained in:
Liumeo 2020-04-06 04:01:17 -04:00 committed by GitHub
parent 38b8d5929d
commit 968a354976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ R_API char *r_buf_get_string(RBuffer *b, ut64 addr) {
R_API st64 r_buf_read(RBuffer *b, ut8 *buf, ut64 len) {
r_return_val_if_fail (b && buf, -1);
ut64 r = buf_read (b, buf, len);
st64 r = buf_read (b, buf, len);
if (r >= 0 && r < len) {
memset (buf + r, b->Oxff_priv, len - r);
}