summaryrefslogtreecommitdiffstats
path: root/src/unicoderange.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-26 01:54:08 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-26 01:54:08 +0000
commite80a86b84d1e5cd64139df6aee147795067cb938 (patch)
tree53fb3e0050a406d48dd4c869997db4ff92832bc1 /src/unicoderange.cpp
parentUpdate to trunk (diff)
parentPatch for several issues in libuemf. (diff)
downloadinkscape-e80a86b84d1e5cd64139df6aee147795067cb938.tar.gz
inkscape-e80a86b84d1e5cd64139df6aee147795067cb938.zip
Update to trunk
(bzr r13090.1.32)
Diffstat (limited to 'src/unicoderange.cpp')
-rw-r--r--src/unicoderange.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unicoderange.cpp b/src/unicoderange.cpp
index 803e1a884..5a9c4b331 100644
--- a/src/unicoderange.cpp
+++ b/src/unicoderange.cpp
@@ -39,7 +39,7 @@ int UnicodeRange::add_range(gchar* val){
while(val[i]!='\0' && val[i]!='-' && val[i]!=' ' && val[i]!=','){
i++;
}
- r.start = (gchar*) malloc((i+1)*sizeof(gchar*));
+ r.start = (gchar*) malloc((i+1)*sizeof(gchar));
strncpy(r.start, val, i);
r.start[i] = '\0';
val+=i;
@@ -48,7 +48,7 @@ int UnicodeRange::add_range(gchar* val){
if (val[0]=='-'){
val++;
while(val[i]!='\0' && val[i]!='-' && val[i]!=' ' && val[i]!=',') i++;
- r.end = (gchar*) malloc((i+1)*sizeof(gchar*));
+ r.end = (gchar*) malloc((i+1)*sizeof(gchar));
strncpy(r.end, val, i);
r.end[i] = '\0';
// val+=i;