[libdmapsharing] Fix previous Signed-off-by: W. Michael Petullo <mike flyn org>



commit 67b98db3bc5072e13606aebb0b49534705a550ce
Author: W. Michael Petullo <mike flyn org>
Date:   Wed Jul 6 17:40:11 2011 -0500

    Fix previous
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-structure.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libdmapsharing/dmap-structure.c b/libdmapsharing/dmap-structure.c
index a49c952..cf3f67a 100644
--- a/libdmapsharing/dmap-structure.c
+++ b/libdmapsharing/dmap-structure.c
@@ -962,10 +962,10 @@ dmap_structure_get_size (GNode * structure)
 {
 	DMAPStructureItem *item = (DMAPStructureItem *) structure->data;
 
-	g_assert (sizeof(cc_defs[item->content_code].string) == 4);
+	g_assert (strlen(cc_defs[item->content_code].string) == 4);
 	g_assert (sizeof(item->size) == 4);
 
-	return item->size + sizeof(cc_defs[item->content_code].string) + sizeof(item->size);
+	return item->size + strlen(cc_defs[item->content_code].string) + sizeof(item->size);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]