diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2009-01-10 23:12:40 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2009-01-10 23:12:40 +0000 |
commit | 2b93c2856fcfa04d14abfb07902e18d9d6473570 (patch) | |
tree | 56d9425059e2d0eeed76d7d5e295ee16c735df20 /camlibs/spca50x | |
parent | 81d75af17480555d796d6e9cc1afb0b426d4cb4d (diff) | |
download | libgphoto2-2b93c2856fcfa04d14abfb07902e18d9d6473570.tar.gz |
disable more info.name handling
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11684 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/spca50x')
-rw-r--r-- | camlibs/spca50x/library.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/camlibs/spca50x/library.c b/camlibs/spca50x/library.c index ccd31f3cc..1b7fcb1c3 100644 --- a/camlibs/spca50x/library.c +++ b/camlibs/spca50x/library.c @@ -438,9 +438,6 @@ get_info_func (CameraFilesystem *fs, const char *folder, if (n < flash_file_count) { CHECK (spca50x_flash_get_file_name(camera->pl, n, name)); - strncpy (info->file.name, name, - sizeof (info->file.name)); - CHECK (spca50x_flash_get_file_dimensions( camera->pl, n, &w, &h)); strcpy (info->file.type, GP_MIME_JPEG); @@ -452,7 +449,6 @@ get_info_func (CameraFilesystem *fs, const char *folder, if (cam_has_sdram (camera->pl) && n >= flash_file_count ){ CHECK (spca50x_sdram_get_file_info (camera->pl, n-flash_file_count, &file)); - strncpy (info->file.name, filename, sizeof (info->file.name)); if (file->mime_type == SPCA50X_FILE_TYPE_IMAGE) { strcpy (info->file.type, GP_MIME_JPEG); info->preview.width = 160; @@ -467,7 +463,7 @@ get_info_func (CameraFilesystem *fs, const char *folder, } info->file.fields = - GP_FILE_INFO_NAME | GP_FILE_INFO_TYPE + GP_FILE_INFO_TYPE | GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT; info->file.mtime = 0; |