Simplify function to recursively add a directory.

This commit is contained in:
Vreixo Formoso
2008-01-20 16:56:41 +01:00
parent a86d6219ba
commit a076ae9df2
5 changed files with 108 additions and 136 deletions

View File

@ -272,8 +272,8 @@ int filesrc_writer_write_data(IsoImageWriter *writer)
* 0's to image
*/
char *name = iso_stream_get_name(file->stream);
iso_msg_sorry(t->image->id, LIBISO_FILE_CANT_WRITE,
"File \"%s\" can't be opened. Filling with 0s.", name);
iso_msg_sorry(t->image->id, LIBISO_FILE_CANT_WRITE, "File \"%s\" "
"can't be opened (error %d). Filling with 0s.", name, res);
free(name);
memset(buffer, 0, BLOCK_SIZE);
for (b = 0; b < nblocks; ++b) {