Don't segfault... not an actual fix though.

This commit is contained in:
Jaime Thomas
2008-11-16 06:48:08 +00:00
parent 8a545080aa
commit 5dbb07c5a2
3 changed files with 12 additions and 5 deletions

View File

@@ -74,7 +74,6 @@ ecdb_erase_disc(Ecdb_Erase_Project *proj)
NULL);
burn_disc_erase(ECDB_PROJECT(proj)->drive->
tangible[0].drive, proj->quick);
pthread_create(&progress_update, NULL,
ecdb_drive_progress_update, proj);
pthread_detach(progress_update);
@@ -98,7 +97,12 @@ ecdb_erase_progress_handler(void *data, void *buffer, unsigned int nbyte)
char buf[1024];
// Is this correct?
if (p->sector >= p->sectors)
// Check this
if (sizeof(buffer) == sizeof(BurnProgress))
{
p = buffer;
}
else
{
ecore_event_add(ECDB_DRIVE_ACTION_FINISHED, NULL, NULL, NULL);
return;