Hi,

> -  error_msg = (char *) alloca (strlen (error_message) + 1);
> -  strcpy (error_msg, error_message);
> +  if ((error_msg = strdup(error_message)) == NULL)
> +    errx(1, "Out of memory.");
> +

I wonder who will release the memory chunk allocated by strdup.


_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to