X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fdata.c;h=735639dcc450f2761dbf0179a70a27d7de784c81;hb=ba1b44ead51bba4204c1edaadb59a9ce30d1de27;hp=8f4330eabccf173a2ddca0b6721dab2594295f70;hpb=0d96909dfa8190cea20f8565b2013824f65d307a;p=sysdb.git diff --git a/src/core/data.c b/src/core/data.c index 8f4330e..735639d 100644 --- a/src/core/data.c +++ b/src/core/data.c @@ -124,7 +124,8 @@ sdb_data_format(sdb_data_t *datum, sdb_strbuf_t *buf) '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; tmp[pos] = '\\'; - ++pos; + tmp[pos + 1] = 'x'; + pos += 2; if (byte > 0xf) { tmp[pos] = hex[byte >> 4];