Skip to content

Commit 3179280

Browse files
authored
Merge pull request #37 from macrosoft/unicode-fix
fix FB_unicode
2 parents a432798 + 8907c3c commit 3179280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void FB_unicode(String &uStr) {
7777
case 'r': out += '\r'; break;
7878
case 't': out += '\t'; break;
7979
case 'u':
80-
uBytes = strtol(uStr.c_str() + i + 1, NULL, HEX);
80+
uBytes = strtol(uStr.substring(i + 1, i + 5).c_str(), NULL, HEX);
8181
i += 4;
8282
if ((uBytes >= 0xD800) && (uBytes <= 0xDBFF)) buf = uBytes;
8383
else if ((uBytes >= 0xDC00) && (uBytes <= 0xDFFF)) {

0 commit comments

Comments
 (0)