diff options
author | Lutz Mueller <lutz@users.sourceforge.net> | 2001-10-20 12:51:24 +0000 |
---|---|---|
committer | Lutz Mueller <lutz@users.sourceforge.net> | 2001-10-20 12:51:24 +0000 |
commit | 862f42b29beb1d4b0f71ea7c5fc9dbd685fd2531 (patch) | |
tree | 2c7b948ae3aac1d50a83135389decbddc8567007 /camlibs/sonydscf55/sony.c | |
parent | a1b7dd598c10368662e30cce6b27626868bf2bfa (diff) | |
download | libgphoto2-862f42b29beb1d4b0f71ea7c5fc9dbd685fd2531.tar.gz |
Don't access the CameraFile struct directly.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2655 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/sonydscf55/sony.c')
-rw-r--r-- | camlibs/sonydscf55/sony.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/camlibs/sonydscf55/sony.c b/camlibs/sonydscf55/sony.c index 1e2ebfbaa..0f611ff28 100644 --- a/camlibs/sonydscf55/sony.c +++ b/camlibs/sonydscf55/sony.c @@ -615,6 +615,7 @@ sony_file_get(Camera * camera, int imageid, int thumbnail, int sc; /* count of bytes to skip at start of packet */ Packet dp; int rc; + char buffer[128]; gp_debug_printf(GP_DEBUG_LOW, SONY_CAMERA_ID, "sony_file_get()"); rc = gp_file_clean(file); @@ -623,7 +624,8 @@ sony_file_get(Camera * camera, int imageid, int thumbnail, // FIXME: There appears to be a file name at dp.buffer+5 // after a SelectImage. We could use that for the real // file name instead of our own mockup ("dsc%d.jpg"). - sprintf(file->name, SONY_FILE_NAME_FMT, imageid); + sprintf(buffer, SONY_FILE_NAME_FMT, imageid); + gp_file_set_name (file, buffer); sony_baud_set(camera, baud_rate); |