* character.c (string_escape_byte8): Fix nbytes/nchars typo.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jun 2011 06:09:32 +0000 (23:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Jun 2011 06:09:32 +0000 (23:09 -0700)
src/ChangeLog
src/character.c

index 6d163f5..b05b360 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * character.c (string_escape_byte8): Fix nbytes/nchars typo.
+
        * alloc.c (Fmake_string): Check for out-of-range init.
 
 2011-06-07  Daniel Colascione  <dan.colascione@gmail.com>
index 1709526..fe8be70 100644 (file)
@@ -847,7 +847,7 @@ string_escape_byte8 (Lisp_Object string)
     }
   else
     {
-      if ((STRING_BYTES_MAX - nchars) / 3 < byte8_count)
+      if ((STRING_BYTES_MAX - nbytes) / 3 < byte8_count)
        string_overflow ();
 
       /* Convert 1-byte sequence of byte8 chars to 4-byte octal.  */