Skip to content
Snippets Groups Projects
Forked from Utils / KWSys
Source project has a limited visibility.
  • Brad King's avatar
    9fd64779
    SystemTools: Fix FileIsDirectory with long paths · 9fd64779
    Brad King authored
    Allocate a buffer large enough to hold the input path when removing a
    trailing slash.  Use a local stack buffer when it is large enough and
    fall back to heap allocation otherwise.
    
    Change-Id: Ibc4b4c96c7b0fafae9f4b5cd7ea894bdd605a098
    9fd64779
    History
    SystemTools: Fix FileIsDirectory with long paths
    Brad King authored
    Allocate a buffer large enough to hold the input path when removing a
    trailing slash.  Use a local stack buffer when it is large enough and
    fall back to heap allocation otherwise.
    
    Change-Id: Ibc4b4c96c7b0fafae9f4b5cd7ea894bdd605a098