Changeset 1322 for trunk


Ignore:
Timestamp:
Nov 30, 2010, 4:51:15 PM (10 years ago)
Author:
Peter Johansson
Message:

fix compilation error on Fedora

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r1321 r1322  
    227227  std::string pwd(void)
    228228  {
    229     char buffer[PATH_MAX];
    230     if (!getcwd(buffer, PATH_MAX))
     229    char buffer[FILENAME_MAX];
     230    if (!getcwd(buffer, FILENAME_MAX))
    231231      throw yat::utility::errno_error("pwd: ");
    232232    return std::string(buffer);
Note: See TracChangeset for help on using the changeset viewer.