diff --git a/camlibs/ptp2/ptp-pack.c b/camlibs/ptp2/ptp-pack.c index 9f3368df7..248f0d9da 100644 --- a/camlibs/ptp2/ptp-pack.c +++ b/camlibs/ptp2/ptp-pack.c @@ -1555,6 +1555,7 @@ ptp_unpack_Canon_EOS_FE (PTPParams *params, unsigned char* data, unsigned int si fe->Time=(time_t)dtoh32a(&data[PTP_cefe_Time]); for (i=0; iFilename[i]=(char)data[PTP_cefe_Filename+i]; + fe->Filename[PTP_CANON_FilenameBufferLen-1] = 0; }