From 89c062b49bde7ea2baf18da73dd37c83d3ec3b81 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Sat, 22 Sep 2001 07:36:22 +0000 Subject: [PATCH] =?UTF-8?q?2001-09-22=20=20Lutz=20M=EF=BF=BDller=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch from Ilya Konstantinov : * camlibs/sierra/sierra.c (get_info_func): Set the filename. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2293 67ed7778-7388-44ab-90cf-0a291f65f57c --- ChangeLog | 6 ++++++ camlibs/sierra/sierra.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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;