summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 302b886..31c2a76 100644
--- a/src/main.c
+++ b/src/main.c
@@ -124,7 +124,7 @@ int main(int argc, char *argv[]) {
124 printf("Seek & read\n"); 124 printf("Seek & read\n");
125 my_file = afc_open_file(afc, "/readme.libiphone.fx", AFC_FILE_READ); 125 my_file = afc_open_file(afc, "/readme.libiphone.fx", AFC_FILE_READ);
126 bytes = afc_seek_file(afc, my_file, 5); 126 bytes = afc_seek_file(afc, my_file, 5);
127 if (!bytes) printf("WARN: SEEK DID NOT WORK\n"); 127 if (bytes) printf("WARN: SEEK DID NOT WORK\n");
128 char *threeletterword = (char*)malloc(sizeof(char) * 5); 128 char *threeletterword = (char*)malloc(sizeof(char) * 5);
129 bytes = afc_read_file(afc, my_file, threeletterword, 3); 129 bytes = afc_read_file(afc, my_file, threeletterword, 3);
130 threeletterword[3] = '\0'; 130 threeletterword[3] = '\0';