[tracker/libtracker-sparql: 28/41] libtracker-sparql: Consider \b and \f while iterating string to escape
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-sparql: 28/41] libtracker-sparql: Consider \b and \f while iterating string to escape
- Date: Mon, 9 Aug 2010 16:01:02 +0000 (UTC)
commit 9d3bfe455904fb07cf01668a0a32e1202237c0ae
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]