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:
Lutz Mueller
2001-02-27 23:09:55 +00:00
parent 464b879d9b
commit 9a6ea86945

View File

@@ -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");