[libbluray-devel] str_printf -> str_dup

hpi1 git at videolan.org
Fri Jan 11 21:58:33 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jan 11 22:45:07 2013 +0200| [4ac7d118d5b145c826d75bd1e30b8e2d17de46d8] | committer: hpi1

str_printf -> str_dup

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=4ac7d118d5b145c826d75bd1e30b8e2d17de46d8
---

 src/libbluray/bdnav/meta_parse.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
index 653a133..a2b09d7 100644
--- a/src/libbluray/bdnav/meta_parse.c
+++ b/src/libbluray/bdnav/meta_parse.c
@@ -120,7 +120,7 @@ static void _findMetaXMLfiles(META_ROOT *meta, const char *device_path)
             uint8_t i = meta->dl_count;
             meta->dl_count++;
             meta->dl_entries = realloc(meta->dl_entries, (meta->dl_count*sizeof(META_DL)));
-            meta->dl_entries[i].filename = str_printf("%s", ent.d_name);
+            meta->dl_entries[i].filename = str_dup(ent.d_name);
             strncpy(meta->dl_entries[i].language_code, ent.d_name+5,3);
             meta->dl_entries[i].language_code[3] = '\0';
             str_tolower(meta->dl_entries[i].language_code);



More information about the libbluray-devel mailing list