Hello! Some checks for return codes are missing. Examples: Would you like to add more error handling for return values from "calloc" like in the function "xsane_pref_restore" and from "fprintf" in the function "xsane_write_pnm_header"? http://xsane.org/download/xsane-0.994.tar.gz Regards, Markus