summaryrefslogtreecommitdiff
path: root/utils/MTP/beastpatcher/mtp_libmtp.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-11 19:55:28 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-11 19:55:28 +0000
commit864a4787b02a2db6edd656129c24168666d12bef (patch)
tree25c9ab3665eeb63178cf5da413f714d8dcf1dc36 /utils/MTP/beastpatcher/mtp_libmtp.c
parent460a1c44977b6dc4e4327a1826760cd35944c6a3 (diff)
downloadrockbox-864a4787b02a2db6edd656129c24168666d12bef.tar.gz
rockbox-864a4787b02a2db6edd656129c24168666d12bef.zip
Allow building beastpatcher with libmtp 0.2.[0-5].
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21249 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/MTP/beastpatcher/mtp_libmtp.c')
-rw-r--r--utils/MTP/beastpatcher/mtp_libmtp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/MTP/beastpatcher/mtp_libmtp.c b/utils/MTP/beastpatcher/mtp_libmtp.c
index ed2d32b85f..c29e5277b2 100644
--- a/utils/MTP/beastpatcher/mtp_libmtp.c
+++ b/utils/MTP/beastpatcher/mtp_libmtp.c
@@ -78,11 +78,14 @@ int mtp_scan(struct mtp_info_t* mtp_info)
78 else 78 else
79 { 79 {
80 /* NOTE: These strings are filled with zeros in mtp_init() */ 80 /* NOTE: These strings are filled with zeros in mtp_init() */
81 81#ifndef REALLYOLDMTP
82 if ((str = LIBMTP_Get_Manufacturername(mtp_info->device))) 82 if ((str = LIBMTP_Get_Manufacturername(mtp_info->device)))
83 { 83 {
84 strncpy(mtp_info->manufacturer, str, sizeof(mtp_info->manufacturer)-1); 84 strncpy(mtp_info->manufacturer, str, sizeof(mtp_info->manufacturer)-1);
85 } 85 }
86#else
87 strcpy(mtp_info->manufacturer, "(unknown manufacturer)");
88#endif
86 89
87 if ((str = LIBMTP_Get_Modelname(mtp_info->device))) 90 if ((str = LIBMTP_Get_Modelname(mtp_info->device)))
88 { 91 {