Set the content type correctly.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1628 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -136,7 +136,7 @@ int gp_file_open (CameraFile *file, char *filename) {
|
||||
/* needs MIME lookup!! */
|
||||
dot = strrchr(filename, '.');
|
||||
if (dot)
|
||||
sprintf(file->type, "image/%s", dot);
|
||||
sprintf(file->type, "image/%s", dot + 1);
|
||||
else
|
||||
strcpy(file->type, "image/unknown");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user