[tracker/tracker-0.8] tracker-extract: Bugfix for NB#166767, spaces aren't keyword separators



commit 9fac6b3abe58ac587b0199234b258c754a182edd
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue May 4 19:55:37 2010 +0200

    tracker-extract: Bugfix for NB#166767, spaces aren't keyword separators
    
    *** Updated for 0.8 since we don't have pdf.cpp file to patch

 src/libtracker-extract/tracker-xmp.c       |    4 ++--
 src/tracker-extract/tracker-extract-jpeg.c |    4 ++--
 src/tracker-extract/tracker-extract-png.c  |    4 ++--
 src/tracker-extract/tracker-extract-tiff.c |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c
index f7c3b21..dfa119d 100644
--- a/src/libtracker-extract/tracker-xmp.c
+++ b/src/libtracker-extract/tracker-xmp.c
@@ -522,9 +522,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
 	if (keywords[len - 1] == '"')
 		keywords[len - 1] = '\0';
 
-	for (keyw = strtok_r (keywords, ",; ", &lasts);
+	for (keyw = strtok_r (keywords, ",;", &lasts);
 	     keyw;
-	     keyw = strtok_r (NULL, ",; ", &lasts)) {
+	     keyw = strtok_r (NULL, ",;", &lasts)) {
 		tracker_sparql_builder_predicate (metadata, "nao:hasTag");
 
 		tracker_sparql_builder_object_blank_open (metadata);
diff --git a/src/tracker-extract/tracker-extract-jpeg.c b/src/tracker-extract/tracker-extract-jpeg.c
index 6143214..816cce1 100644
--- a/src/tracker-extract/tracker-extract-jpeg.c
+++ b/src/tracker-extract/tracker-extract-jpeg.c
@@ -109,9 +109,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
 		keywords[len - 1] = '\0';
 	}
 
-	for (p = strtok_r (keywords, ",; ", &saveptr);
+	for (p = strtok_r (keywords, ",;", &saveptr);
 	     p;
-	     p = strtok_r (NULL, ",; ", &saveptr)) {
+	     p = strtok_r (NULL, ",;", &saveptr)) {
 		tracker_sparql_builder_predicate (metadata, "nao:hasTag");
 
 		tracker_sparql_builder_object_blank_open (metadata);
diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index 8187a66..9ebf11c 100644
--- a/src/tracker-extract/tracker-extract-png.c
+++ b/src/tracker-extract/tracker-extract-png.c
@@ -107,9 +107,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
 		keywords[len - 1] = '\0';
 	}
 
-	for (keyw = strtok_r (keywords, ",; ", &lasts); 
+	for (keyw = strtok_r (keywords, ",;", &lasts); 
 	     keyw;
-	     keyw = strtok_r (NULL, ",; ", &lasts)) {
+	     keyw = strtok_r (NULL, ",;", &lasts)) {
 		tracker_sparql_builder_predicate (metadata, "nao:hasTag");
 
 		tracker_sparql_builder_object_blank_open (metadata);
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index fbd8b76..985dae7 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -251,9 +251,9 @@ insert_keywords (TrackerSparqlBuilder *metadata,
 	if (keywords[len - 1] == '"')
 		keywords[len - 1] = '\0';
 
-	for (keyw = strtok_r (keywords, ",; ", &lasts);
+	for (keyw = strtok_r (keywords, ",;", &lasts);
 	     keyw;
-	     keyw = strtok_r (NULL, ",; ", &lasts)) {
+	     keyw = strtok_r (NULL, ",;", &lasts)) {
 		tracker_sparql_builder_predicate (metadata, "nao:hasTag");
 
 		tracker_sparql_builder_object_blank_open (metadata);



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