]> git.eshelyaron.com Git - emacs.git/commitdiff
* data.c (Fsubr_name): Rewrite to avoid a strlen call.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jun 2011 18:44:58 +0000 (11:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jun 2011 18:44:58 +0000 (11:44 -0700)
src/ChangeLog
src/data.c

index 99d9cad7628b109aa321765de2f50c19b09371df..e5d7a81792ebc8d0817acbbdb07885476fadbdeb 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-19  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * data.c (Fsubr_name): Rewrite to avoid a strlen call.
+
        * coding.c (make_subsidiaries): Don't assume string length fits in int.
 
        * callproc.c (child_setup): Rewrite to avoid two strlen calls.
index cf01d38036d248f92cb1a0e0c6b4a25c0312873d..6b4ea32ac9ea8867d5411a9211ee85ffeaf22b84 100644 (file)
@@ -703,7 +703,7 @@ SUBR must be a built-in function.  */)
   const char *name;
   CHECK_SUBR (subr);
   name = XSUBR (subr)->symbol_name;
-  return make_string (name, strlen (name));
+  return build_string (name);
 }
 
 DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0,