summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox/PDa/src/m_binbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/m_binbuf.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/m_binbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_binbuf.c b/apps/plugins/pdbox/PDa/src/m_binbuf.c
index 50ed03cd85..3515714dc9 100644
--- a/apps/plugins/pdbox/PDa/src/m_binbuf.c
+++ b/apps/plugins/pdbox/PDa/src/m_binbuf.c
@@ -799,7 +799,7 @@ int binbuf_write(t_binbuf *x, char *filename, char *dir, int crflag)
if (ep - bp < length)
{
#ifdef ROCKBOX
- if(write(f, sbuf, bp-sbuf) < 1)
+ if(write(f, sbuf, bp-sbuf) < 1 * (bp-sbuf))
#else /* ROCKBOX */
if (fwrite(sbuf, bp-sbuf, 1, f) < 1)
#endif /* ROCKBOX */
@@ -830,7 +830,7 @@ int binbuf_write(t_binbuf *x, char *filename, char *dir, int crflag)
}
}
#ifdef ROCKBOX
- if(write(f, sbuf, bp-sbuf) < 1)
+ if(write(f, sbuf, bp-sbuf) < 1 * (bp-sbuf))
#else /* ROCKBOX */
if (fwrite(sbuf, bp-sbuf, 1, f) < 1)
#endif /* ROCKBOX */