28 lines
987 B
Diff
28 lines
987 B
Diff
diff --git a/src/linux_macos/bin2iso_v1.9b_linux.c b/src/linux_macos/bin2iso_v1.9b_linux.c
|
|
index aff7a72..a3044ad 100644
|
|
--- a/src/linux_macos/bin2iso_v1.9b_linux.c
|
|
+++ b/src/linux_macos/bin2iso_v1.9b_linux.c
|
|
@@ -1,3 +1,4 @@
|
|
+#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
@@ -111,7 +112,7 @@ typedef struct track
|
|
unsigned long size; /* track size in bytes */
|
|
} tTrack;
|
|
|
|
-buffered_fread(unsigned char *array, unsigned int size) {
|
|
+int buffered_fread(unsigned char *array, unsigned int size) {
|
|
unsigned int i;
|
|
|
|
if(INBUF_WIDX == 0) {
|
|
@@ -125,7 +126,7 @@ buffered_fread(unsigned char *array, unsigned int size) {
|
|
array[i] = INBUF[INBUF_RIDX++];
|
|
if((INBUF_RIDX == INBUF_WIDX) && (i < (size -1))) {
|
|
printf(" Warning: Premature EOF\n");
|
|
- while(i++ < size) { array[i] == 0; }/* zero fill the rest */
|
|
+ while(i++ < size) { array[i] = 0; }/* zero fill the rest */
|
|
break;
|
|
}
|
|
}
|