- Mac installer: fix off-by-1 error

svn path=/trunk/boinc/; revision=18207
This commit is contained in:
David Anderson 2009-05-26 21:24:56 +00:00
parent 97400b8dc8
commit 6a7edc50c4
2 changed files with 7 additions and 1 deletions

View File

@ -4745,3 +4745,9 @@ David 26 May 2009
db/
schema.sql
David 26 May 2009
- Mac installer: fix off-by-1 error
mac_installer/
CustomInstall.cpp

View File

@ -84,7 +84,7 @@ int main(int argc, char *argv[])
Initialize();
#ifdef __APPLE__
if (strlen(argv[0]) >= sizeof(path))
if (strlen(argv[0]) >= sizeof(path)-1)
{
show_message((StringPtr)"\pPath to application is too long.");
return 0;