summaryrefslogtreecommitdiffstats
path: root/src/unicoderange.cpp
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-06-25 00:53:34 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-06-25 00:53:34 +0000
commit08807d307231af4c69dd55794fb6c1bcc1df7b04 (patch)
treef0f44e0fd5b8ca5f6736235cdd098963f5fb08fa /src/unicoderange.cpp
parentAdded length class. (diff)
parentCorrectly ignore symbolic link to ltmain.sh (diff)
downloadinkscape-08807d307231af4c69dd55794fb6c1bcc1df7b04.tar.gz
inkscape-08807d307231af4c69dd55794fb6c1bcc1df7b04.zip
Merge from trunk.
(bzr r12380.1.2)
Diffstat (limited to 'src/unicoderange.cpp')
-rw-r--r--src/unicoderange.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/unicoderange.cpp b/src/unicoderange.cpp
index dcf461214..67239d0d2 100644
--- a/src/unicoderange.cpp
+++ b/src/unicoderange.cpp
@@ -37,8 +37,10 @@ int
UnicodeRange::add_range(gchar* val){
Urange r;
int i=0, count=0;
- while(val[i]!='\0' && val[i]!='-' && val[i]!=' ' && val[i]!=',') i++;
- r.start = (gchar*) malloc((i+1)*sizeof(gchar*));
+ while(val[i]!='\0' && val[i]!='-' && val[i]!=' ' && val[i]!=','){
+ i++;
+ }
+ r.start = (gchar*) malloc((i+1)*sizeof(gchar*));
strncpy(r.start, val, i);
r.start[i] = '\0';
val+=i;
@@ -50,7 +52,7 @@ UnicodeRange::add_range(gchar* val){
r.end = (gchar*) malloc((i+1)*sizeof(gchar*));
strncpy(r.end, val, i);
r.end[i] = '\0';
- val+=i;
+ // val+=i;
count+=i;
} else {
r.end=NULL;