changed a sprintf to strcpy in canon.c (avoids a coredumps (?))
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@857 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -439,7 +439,7 @@ static int _canon_file_list(struct psa50_dir *tree, CameraList *list, char *fold
|
||||
*/
|
||||
while (tree->name) {
|
||||
if(is_image(tree->name)) {
|
||||
sprintf(list->entry[picfiles].name,"%s",tree->name);
|
||||
strcpy(list->entry[picfiles].name,tree->name);
|
||||
list->entry[picfiles].type=GP_LIST_FILE;
|
||||
picfiles++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user