]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 6d163f56c1e2340eb2a649130d6ebee6b47829eb..b05b3603c0db6b0a13c488ef6d49ab9004f94df2 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 170952619e7ad49e95c35f395adcdf8322a6cf96..fe8be7084f00c26378dd09388a81c3f49bf14c89 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.  */