chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shared: utf8 - support ucs4 -> utf8
[elogind.git]
/
src
/
shared
/
json.c
diff --git
a/src/shared/json.c
b/src/shared/json.c
index f1495e99c8f551ea52d22c8feae7d98bfdb3826a..47f801c8589223d511e7ebf1ec3e03bce14af64c 100644
(file)
--- a/
src/shared/json.c
+++ b/
src/shared/json.c
@@
-150,7
+150,7
@@
static int json_parse_string(const char **p, char **ret) {
if (!GREEDY_REALLOC(s, allocated, n + 4))
return -ENOMEM;
if (!GREEDY_REALLOC(s, allocated, n + 4))
return -ENOMEM;
- n += utf8_encode_unichar(
x, s + n
);
+ n += utf8_encode_unichar(
s + n, x
);
c += 5;
continue;
} else
c += 5;
continue;
} else