Return byte count instead of 0 on success (#5717)
This commit is contained in:
parent
aad95fb2fd
commit
03cd14c343
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue