Skip to content

Commit 6ca5db8

Browse files
authored
Merge pull request #7048 from BOINC/mac_fix_installer_relocatability
Mac: Fix installer failure when it is run from a short path
2 parents 7b4ce8d + 0a0a85e commit 6ca5db8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mac_installer/Installer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is part of BOINC.
22
// http://boinc.berkeley.edu
3-
// Copyright (C) 2022 University of California
3+
// Copyright (C) 2026 University of California
44
//
55
// BOINC is free software; you can redistribute it and/or modify it
66
// under the terms of the GNU Lesser General Public License
@@ -159,8 +159,8 @@ int main(int argc, char *argv[])
159159

160160
// Write a temp file to tell our PostInstall.app the previous branding, if any
161161
oldBrandID = GetOldBrandID();
162-
snprintf(temp, sizeof(temp), "/tmp/%s/OldBranding", tempDirName);
163-
f = fopen(temp, "w");
162+
snprintf(temp2, sizeof(temp2), "/tmp/%s/OldBranding", tempDirName);
163+
f = fopen(temp2, "w");
164164
if (!f) {
165165
REPORT_ERROR(true);
166166
} else {

0 commit comments

Comments
 (0)