emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About the new frame title


From: Eli Zaretskii
Subject: Re: About the new frame title
Date: Thu, 24 Sep 2020 17:46:27 +0300

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Thu, 24 Sep 2020 01:57:38 -0700
> Cc: angelo.g0@libero.it, emacs-devel@gnu.org
> 
> +  const char *title;
>    if (STRINGP (system_name))
>      {
> -      *nametail++ = '@';
> -      lispstpcpy (nametail, system_name);
> +      title = "GNU Emacs at ";
> +      ptrdiff_t nbytes = sizeof (title);

Does this work?  AFAIK, 'sizeof (char *)' returns 8 on a 64-bit system
and 4 on a 32-bit system, regardless of the length of the text string
it points to.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]