Add logging to view-source filename generation.

This commit is contained in:
Michael Drake 2014-04-18 16:35:46 +01:00
parent 0d32293c6a
commit 898ff4b821

View File

@ -2098,6 +2098,7 @@ void ro_gui_view_source(hlcache_handle *c)
warn_user("NoMemory", 0);
return;
}
LOG(("Generated file name: \"%s\"", filename));
snprintf(full_name, 256, "%s/%s", TEMP_FILENAME_PREFIX,
filename);
full_name[255] = '\0';
@ -2108,6 +2109,7 @@ void ro_gui_view_source(hlcache_handle *c)
return;
}
message.file_name[211] = '\0';
LOG(("RISC OS-ified file name: \"%s\"", message.file_name));
error = xosfile_save_stamped(message.file_name,
ro_content_filetype(c),
(byte *) source_data,