emacs-devel
[Top][All Lists]
Advanced

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

Re: $USERPROFILE for $HOME on W32


From: Andreas Schwab
Subject: Re: $USERPROFILE for $HOME on W32
Date: Sat, 27 Nov 2004 00:42:07 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

"Eli Zaretskii" <address@hidden> writes:

> Silly me: it's defined on w32.c, right there.  The pw_dir etc. struct
> members are defined as fixed-size strings, and the sizes are all 256
> bytes, including the terminating null.  So I think, at least that
> should be changed to 261, since the longest file name supported by
> Windows is 260 characters.

Any fixed length would be wrong, IMHO.  Can't this just be dynamically
allocated?

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
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 via email to

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