]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/stdpaths.cpp
Move code that does not need realized GdkWinow out of realize handler
[wxWidgets.git] / src / unix / stdpaths.cpp
index d65bb8dd7fa687b2bd2c6bd626f681bc7fc9c316..4e0c37b18f1febcd0e7e256e1b2fd9a3b18b0761 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Vadim Zeitlin
 // Modified by:
 // Created:     2004-10-19
-// RCS-ID:      $Id$
 // Copyright:   (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -122,7 +121,7 @@ wxString wxStandardPaths::GetExecutablePath() const
     wxString exeStr;
 
     char buf[4096];
-    int result = readlink("/proc/self/exe", buf, WXSIZEOF(buf) - sizeof(char));
+    int result = readlink("/proc/self/exe", buf, WXSIZEOF(buf) - 1);
     if ( result != -1 )
     {
         buf[result] = '\0'; // readlink() doesn't NUL-terminate the buffer