X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fjsonpath.git;a=blobdiff_plain;f=lexer.c;h=ca5880e15fedcb6ad46731562800facb67db2aa7;hp=b1615ad2cf8b09fc9ef0d72d572d5699ccce7075;hb=cd6629fc75787cbfcbec12282bd738373bc46ac6;hpb=afa3a10096e6d3ad50dc9d8250f40d8f23a9ad42 diff --git a/lexer.c b/lexer.c index b1615ad..ca5880e 100644 --- a/lexer.c +++ b/lexer.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2014 Jo-Philipp Wich + * Copyright (C) 2013-2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -55,7 +55,7 @@ utf8enc(char **out, int *rem, int code) if (*rem < 1) return false; - *(*out++) = code; (*rem)--; + *(*out)++ = code; (*rem)--; return true; } else if (code > 0 && code <= 0x7FF)