diff options
author | Zach C | 2008-08-12 00:31:56 -0700 |
---|---|---|
committer | Matt Colyer | 2008-08-12 00:31:56 -0700 |
commit | 8d5c88acc75871d2ec59793f312dc0fe0c54351f (patch) | |
tree | 0e57f34465af448972be39802d001e4fabdf311b /src/main.c | |
parent | 2448b82a1844fbe7cf93bf357152d4936d0c9a4a (diff) | |
download | libplist-8d5c88acc75871d2ec59793f312dc0fe0c54351f.tar.gz libplist-8d5c88acc75871d2ec59793f312dc0fe0c54351f.tar.bz2 |
Fixed seeking, also connections are no longer added twice.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -124,7 +124,7 @@ int main(int argc, char *argv[]) { printf("Seek & read\n"); my_file = afc_open_file(afc, "/readme.libiphone.fx", AFC_FILE_READ); bytes = afc_seek_file(afc, my_file, 5); - if (!bytes) printf("WARN: SEEK DID NOT WORK\n"); + if (bytes) printf("WARN: SEEK DID NOT WORK\n"); char *threeletterword = (char*)malloc(sizeof(char) * 5); bytes = afc_read_file(afc, my_file, threeletterword, 3); threeletterword[3] = '\0'; |