[PD-dev] [ pure-data-Patches-1963983 ] use FILENAME_MAX for all filenames, since its < MAXPDSTRING
SourceForge.net
noreply at sourceforge.net
Sat Jul 2 17:25:43 CEST 2011
Patches item #1963983, was opened at 2008-05-14 13:36
Message generated for change (Settings changed) made by eighthave
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1963983&group_id=55736
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: bugfix
>Status: Closed
>Resolution: Out of Date
Priority: 6
Private: No
Submitted By: Hans-Christoph Steiner (eighthave)
>Assigned to: Nobody/Anonymous (nobody)
Summary: use FILENAME_MAX for all filenames, since its < MAXPDSTRING
Initial Comment:
On Windows, FILENAME_MAX is much smaller than MAXPDSTRING, so I replaced MAXPDSTRING with FILENAME_MAX everywhere I could find that is related to filenames. FILENAME_MAX is a POSIX standard macro for defining the max length of a complete filename.
The current situation could result in crashes on Windows.
----------------------------------------------------------------------
>Comment By: Hans-Christoph Steiner (eighthave)
Date: 2011-07-02 11:25
Message:
this is out of date
----------------------------------------------------------------------
Comment By: Miller Puckette (millerpuckette)
Date: 2010-07-28 20:47
Message:
I'm not sure but I don't think Windows should have trouble trying to open
files with too-long names -- if it's anything near correct it should simply
refuse. And it's better to have as few POSIX dependencies as possible (Pd
bios, anyone? :)
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-05-14 13:47
Message:
Logged In: YES
user_id=27104
Originator: YES
ok, this time really removed all bits of
add_tilde_support_toopen-0.41.4.patch
File Added: use_FILENAME_MAX_for_file_operations-0.41.4.patch
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-05-14 13:39
Message:
Logged In: YES
user_id=27104
Originator: YES
oops, removed add_tilde_support_toopen-0.41.4.patch from this one
File Added: use_FILENAME_MAX_for_file_operations-0.41.4.patch
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1963983&group_id=55736
More information about the Pd-dev
mailing list