Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0f89704572d20999499b505c13618a7ca252db26
Ticket: 641261ffffffffffffffffffffffffffffffffff
Too short a value of TK_MULTI_MAX_PATH
User & Date: hobbs on 2002-12-01 04:02:55
Changes

  1. icomment:
    Logged In: YES 
    user_id=72656
    
    OK, I can see that that would possibly be a problem.  My 
    suggestion would be to make a modified version of your 
    recommended patch - one that specifies the number of 
    expected files.  If it is 0, we use just 1*MAX_PATH, and for 
    any number less than 20, we leave it at 20*MAX_PATH (for 
    backwards compatability with existing functionality), and for 
    anything larger it is n*MAX_PATH.  This only makes a 
    difference on Windows of course, but it would at least be 
    compatible.  There is no reason that we must create that 
    buffer on the stack - it can just as well be malloc'ed when we 
    know the requested size.
    
    
  2. login: "hobbs"
  3. mimetype: "text/plain"
  4. username: "hobbs"