summaryrefslogtreecommitdiff
path: root/src/strops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strops.cpp')
-rw-r--r--src/strops.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strops.cpp b/src/strops.cpp
index 2dfbf16..798e57e 100644
--- a/src/strops.cpp
+++ b/src/strops.cpp
@@ -162,10 +162,10 @@ namespace strops {
pos++;
// Skip whitespace and quotes
- while (*pos == ' ' || *pos == '\"') pos++;
+ while (*pos == ' ' || (*pos == '\"' && *(pos+1) != '\"')) pos++;
size_t i = 0;
- while (*pos && !(*pos == '\"' && *(pos-1) != '\\') && i < out_size - 1) {
+ while (*pos /*&& *pos != '}'*/ && !(*pos == '\"' && *(pos-1) != '\\') && i < out_size - 1) {
out[i++] = *pos++;
}
out[i] = '\0';