Return byte count instead of 0 on success (#5717)

This commit is contained in:
Anton Angelov 2025-12-31 18:15:54 +02:00 committed by GitHub
parent aad95fb2fd
commit 03cd14c343
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,7 @@ static st32 __write(RzIO *io, RzIODesc *fd, const ut8 *buf, size_t count) {
fprintf(out, "S70500000000FA\n");
fclose(out);
out = NULL;
return 0;
return count;
}
static st32 __read(RzIO *io, RzIODesc *fd, ut8 *buf, size_t count) {