* 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 99d9cad..e5d7a81 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 cf01d38..6b4ea32 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,