From 9a6ea86945989504e00f8beb0f39cb188a23aed3 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Tue, 27 Feb 2001 23:09:55 +0000 Subject: [PATCH] Set the content type correctly. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1628 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgphoto2/file.c b/libgphoto2/file.c index 00a3a1ac5..ed86b3471 100644 --- a/libgphoto2/file.c +++ b/libgphoto2/file.c @@ -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");