diff --git a/ChangeLog b/ChangeLog index d17b78341..99a3e1073 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-09-22 Lutz Müller + + Patch from Ilya Konstantinov : + + * camlibs/sierra/sierra.c (get_info_func): Set the filename. + 2001-09-21 Raymond Penners * AUTHORS diff --git a/camlibs/sierra/sierra.c b/camlibs/sierra/sierra.c index daae4e826..743cfeaf5 100644 --- a/camlibs/sierra/sierra.c +++ b/camlibs/sierra/sierra.c @@ -204,9 +204,14 @@ get_info_func (CameraFilesystem *fs, const char *folder, const char *filename, CHECK_STOP (camera, sierra_change_folder (camera, folder)); CHECK_STOP (camera, sierra_set_int_register (camera, 4, n + 1)); - info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE | + GP_FILE_INFO_NAME; info->preview.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE; + /* Name of image */ + strncpy (info->file.name, filename, sizeof (info->file.name) - 1); + info->file.name[sizeof (info->file.name) - 1] = '\0'; + /* Get the size of the current image */ CHECK_STOP (camera, sierra_get_int_register (camera, 12, &l)); info->file.size = l;