]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/stdpaths.cpp
sizeof(char) is 1. By definition.
[wxWidgets.git] / src / unix / stdpaths.cpp
index d65bb8dd7fa687b2bd2c6bd626f681bc7fc9c316..58f8c2c6706d33ea5eff1bad7654a27392f4e5ef 100644 (file)
@@ -122,7 +122,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