summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/mp3_encoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c
index 1e159da2c8..7b799d2ef8 100644
--- a/apps/plugins/mp3_encoder.c
+++ b/apps/plugins/mp3_encoder.c
@@ -835,7 +835,8 @@ bool checkString(int fd, char *string)
rb->read(fd, temp, 4);
- return (*(long*)temp == *(long*)string) ? 1 : 0;
+ /* return 1 on match, 0 on no match */
+ return !rb->memcmp(temp, string, 4);
}
int Read16BitsLowHigh(int fd)