- while decoding thats overwritten. probably a bug sleeping in here waiting for its discovery for a long time.
}
if (bytes_decoded > 0) if (CallBack != NULL) {
- CallBack(name, filename, fixed_partnum(partnum),
- disposition, decoded,
- content_type, charset, bytes_decoded, "binary", id, userdata);
+ char encoding_buf[SIZ];
+
+ strcpy(encoding_buf, "binary");
+ CallBack(name,
+ filename,
+ fixed_partnum(partnum),
+ disposition,
+ decoded,
+ content_type,
+ charset,
+ bytes_decoded,
+ encoding_buf,
+ id,
+ userdata);
}
free(decoded);