diff options
Diffstat (limited to 'libtar/block.c')
-rw-r--r-- | libtar/block.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libtar/block.c b/libtar/block.c index d0adb2bcd..834c164ad 100644 --- a/libtar/block.c +++ b/libtar/block.c @@ -357,7 +357,8 @@ th_read(TAR *t) if (*start == '2') { start++; - if (start + sizeof(struct ext4_encryption_policy) != '\n') + char *newline_check = start + sizeof(struct ext4_encryption_policy); + if (*newline_check != '\n') printf("did not find newline char in expected location, continuing anyway...\n"); memcpy(t->th_buf.eep, start, sizeof(struct ext4_encryption_policy)); #ifdef DEBUG |