Mercurial > libpst
comparison src/libpst.c @ 263:2b0498c17a2f
adding more debug code
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 17 Apr 2011 15:53:29 -0700 |
parents | da14095155a2 |
children | 3f323c867cb4 |
comparison
equal
deleted
inserted
replaced
262:da14095155a2 | 263:2b0498c17a2f |
---|---|
1347 rc.size = 0; | 1347 rc.size = 0; |
1348 rc.data = NULL; | 1348 rc.data = NULL; |
1349 ptr = pst_getID(pf, attach->i_id); | 1349 ptr = pst_getID(pf, attach->i_id); |
1350 if (ptr) { | 1350 if (ptr) { |
1351 rc.size = pst_ff_getID2data(pf, ptr, &h); | 1351 rc.size = pst_ff_getID2data(pf, ptr, &h); |
1352 DEBUG_WARN(("attachment size was %#"PRIx64", is now %#"PRIx64" based on size of i_id\n", attach->data.size, rc.size)); | 1352 DEBUG_WARN(("attachment %s size was %#"PRIx64", is now %#"PRIx64" based on size of i_id\n", attach->filename2.str, attach->data.size, rc.size)); |
1353 attach->data.size = rc.size; | 1353 attach->data.size = rc.size; |
1354 } else { | 1354 } else { |
1355 DEBUG_WARN(("Couldn't find ID pointer. Cannot save attachment to file\n")); | 1355 DEBUG_WARN(("Couldn't find ID pointer. Cannot save attachment to file\n")); |
1356 } | 1356 } |
1357 if (rc.data) free(rc.data); | 1357 if (rc.data) free(rc.data); |