]> arthur.barton.de Git - netatalk.git/commitdiff
Wrong AD_DATA size
authorFrank Lahm <franklahm@googlemail.com>
Tue, 21 Feb 2012 11:34:03 +0000 (12:34 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 21 Feb 2012 11:34:03 +0000 (12:34 +0100)
libatalk/adouble/ad_open.c

index adbdbe1ebe35e5673cf90ae87bf49b09f0d65b3d..8d0e6f4b3e942d13acbdf87302a34f9288a84b66 100644 (file)
@@ -444,7 +444,7 @@ static int ad_header_read(const char *path _U_, struct adouble *ad, const struct
     struct stat         st;
 
     /* read the header */
-    if ((header_len = adf_pread( ad->ad_mdp, buf, AD_DATASZ, 0)) < 0) {
+    if ((header_len = adf_pread( ad->ad_mdp, buf, AD_DATASZ2, 0)) < 0) {
         return -1;
     }
     if (header_len < AD_HEADER_LEN) {