lexer: fix encoding 7 bit escape sequences
[project/jsonpath.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index b1615ad..ca5880e 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (C) 2013-2014 Jo-Philipp Wich <jow@openwrt.org>
+ * Copyright (C) 2013-2014 Jo-Philipp Wich <jo@mein.io>
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  *
  * 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;
 
                if (*rem < 1)
                        return false;
 
-               *(*out++) = code; (*rem)--;
+               *(*out)++ = code; (*rem)--;
                return true;
        }
        else if (code > 0 && code <= 0x7FF)
                return true;
        }
        else if (code > 0 && code <= 0x7FF)