unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
Cc: emacs-devel@gnu.org, jasonr@gnu.org
Subject: Re: $USERPROFILE for $HOME on W32
Date: Sat, 27 Nov 2004 14:26:36 +0100	[thread overview]
Message-ID: <jehdnbtoc3.fsf@sykes.suse.de> (raw)
In-Reply-To: <01c4d464$Blat.v2.2.2$572558e0@zahav.net.il> (Eli Zaretskii's message of "Sat, 27 Nov 2004 11:33:46 +0200")

"Eli Zaretskii" <eliz@gnu.org> writes:

>> Cc: monnier@iro.umontreal.ca, jasonr@gnu.org, emacs-devel@gnu.org
>> From: Andreas Schwab <schwab@suse.de>
>> Date: Sat, 27 Nov 2004 00:42:07 +0100
>> 
>> Any fixed length would be wrong, IMHO.  Can't this just be dynamically
>> allocated?
>
> Any _arbitrary_ fixed length is wrong.  But if the filesystem supports
> at most FILENAME_MAX-long file names, then using FILENAME_MAX for
> strings that hold file names is not arbitrary.

What if someone sets HOME to something longer?  It won't work as filename,
sure, but Emacs should not crash just because of this.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

  reply	other threads:[~2004-11-27 13:26 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22  6:26 $USERPROFILE for $HOME on W32 Stefan Monnier
2004-11-22  8:44 ` Jason Rumney
2004-11-22 13:04   ` Stefan Monnier
2004-11-25 16:00   ` Stefan Monnier
2004-11-25 16:34     ` Jason Rumney
2004-11-25 16:54       ` Stefan
2004-11-25 21:52         ` Eli Zaretskii
2004-11-25 22:46           ` Jason Rumney
2004-11-26 10:32             ` Eli Zaretskii
2004-11-25 16:57     ` Andreas Schwab
2004-11-25 17:45       ` Stefan
2004-11-25 17:49         ` Andreas Schwab
2004-11-25 21:45         ` Eli Zaretskii
2004-11-26 20:56           ` Eli Zaretskii
2004-11-26 23:42             ` Andreas Schwab
2004-11-27  9:33               ` Eli Zaretskii
2004-11-27 13:26                 ` Andreas Schwab [this message]
2004-11-27 16:40                   ` Eli Zaretskii
2004-11-27 17:46                     ` Andreas Schwab
2004-11-25 22:04     ` Eli Zaretskii
2004-11-25 23:43       ` Stefan Monnier
2004-11-26 10:29         ` Eli Zaretskii
2004-11-26 14:47           ` Stefan Monnier
2004-11-26 20:50             ` Eli Zaretskii
2004-11-26 22:03               ` Stefan Monnier
2004-11-27 11:36                 ` Eli Zaretskii
2004-12-06 23:17   ` Lennart Borgman
2004-11-22 15:46 ` Eli Zaretskii
2004-11-22 16:47   ` Stefan Monnier
2004-11-23 11:49     ` Eli Zaretskii
2004-11-23  8:30   ` Jason Rumney
2004-11-23 11:32     ` Eli Zaretskii
2004-11-23 20:47       ` Jason Rumney
2004-11-23 20:57         ` Eli Zaretskii
2004-11-24  8:17 ` John Paul Wallington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jehdnbtoc3.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).