mirror of
https://github.com/sheumann/hush.git
synced 2025-01-10 16:29:44 +00:00
Use prefix 9 instead of 1 to get the executable path, to avoid a length limitation.
This commit is contained in:
parent
bff0844d44
commit
8f7e30fc8b
@ -19,7 +19,7 @@ char *get_exec_path(void);
|
||||
#include <gsos.h>
|
||||
#include <orca.h>
|
||||
|
||||
/* Prefix 1 is set to the directory containing the executable at launch.
|
||||
/* Prefix 9 is set to the directory containing the executable at launch.
|
||||
* We append the result of a GetName call to this to get the full pathname.
|
||||
*/
|
||||
char *get_exec_path(void) {
|
||||
@ -32,7 +32,7 @@ char *get_exec_path(void) {
|
||||
if (prefix == NULL)
|
||||
return NULL;
|
||||
prefixRec.pCount = 2;
|
||||
prefixRec.prefixNum = 1; /* Info for prefix 1 */
|
||||
prefixRec.prefixNum = 9; /* Info for prefix 9 */
|
||||
prefixRec.buffer.getPrefix = prefix;
|
||||
prefix->bufSize = sizeof(ResultBuf255);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user