summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/pdbox/PDa/src/g_array.c6
-rw-r--r--apps/plugins/pdbox/PDa/src/m_binbuf.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_array.c b/apps/plugins/pdbox/PDa/src/g_array.c
index f0359e465a..1501842b7f 100644
--- a/apps/plugins/pdbox/PDa/src/g_array.c
+++ b/apps/plugins/pdbox/PDa/src/g_array.c
@@ -1264,7 +1264,7 @@ static void garray_read16(t_garray *x, t_symbol *filename,
for (i = 0; i < nelem; i++)
{
#ifdef ROCKBOX
- if(read(fd, &s, sizeof(s)) < 1)
+ if(read(fd, &s, sizeof(s)) < 1 * sizeof(s))
#else
if (fread(&s, sizeof(s), 1, fd) < 1)
#endif
@@ -1413,7 +1413,7 @@ static void garray_write16(t_garray *x, t_symbol *filename, t_symbol *format)
}
memcpy((void *)(waveheader + 40), (void *)(&intbuf), 4);
#ifdef ROCKBOX
- if(write(fd, waveheader, sizeof(waveheader)) < 1)
+ if(write(fd, waveheader, sizeof(waveheader)) < 1 * sizeof(waveheader))
#else
if (fwrite(waveheader, sizeof(waveheader), 1, fd) < 1)
#endif
@@ -1434,7 +1434,7 @@ static void garray_write16(t_garray *x, t_symbol *filename, t_symbol *format)
xxx = foo[0]; foo[0] = foo[1]; foo[1] = xxx;
}
#ifdef ROCKBOX
- if(write(fd, &sh, sizeof(sh)) < 1)
+ if(write(fd, &sh, sizeof(sh)) < 1 * sizeof(sh))
#else
if (fwrite(&sh, sizeof(sh), 1, fd) < 1)
#endif
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 */