[tracker/direct-access] libtracker-sparql: Consider \b and \f while iterating string to escape
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/direct-access] libtracker-sparql: Consider \b and \f while iterating string to escape
- Date: Tue, 3 Aug 2010 08:45:00 +0000 (UTC)
commit dd48ddd384bc037f8861390c05940d133bd4002f
Author: Aleksander Morgado <aleksander lanedo com>
Date: Tue Aug 3 10:44:31 2010 +0200
libtracker-sparql: Consider \b and \f while iterating string to escape
src/libtracker-sparql/tracker-utils.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-utils.vala b/src/libtracker-sparql/tracker-utils.vala
index de67136..5c3af49 100644
--- a/src/libtracker-sparql/tracker-utils.vala
+++ b/src/libtracker-sparql/tracker-utils.vala
@@ -26,7 +26,7 @@ public string tracker_sparql_escape_string (string literal) {
char *p = literal;
while (*p != '\0') {
- size_t len = Posix.strcspn ((string) p, "\t\n\r\"\\");
+ size_t len = Posix.strcspn ((string) p, "\t\n\r\b\f\"\\");
str.append_len ((string) p, (long) len);
p += len;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]