From 872f548126a2c2258c3d002b29b612e83d611782 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 2 Oct 2021 16:23:19 +1000 Subject: Oops, hard coded path for default inventory. --- src/sledjchisl/sledjchisl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 1addd09..eb38df1 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -1138,10 +1138,10 @@ boolean writeLuaString(reqData *Rd, int fd, char *file, char *name, char *string size_t l = strlen(string); char *t0 = xmalloc(l * 2 + 1); - int i, j = 0; + int j = 0; // TODO - maybe escape other non printables as well? - for (i = 0; i < l; i++) + for (int i = 0; i < l; i++) { // We don't need to escape [] here, coz we are using '' below. Same applies to ", but do it anyway. switch(string[i]) @@ -5799,7 +5799,6 @@ notWritten: } } - // load iar -m first last / password /opt/opensim_SC/backups/DefaultMember.IAR struct sysinfo info; float la; @@ -5817,7 +5816,7 @@ notWritten: if (checkSimIsRunning(backupIARsim)) { - char *c = xmprintf("load iar -m %s %s / password /opt/opensim_SC/backups/DefaultMember.IAR", first, last); + char *c = xmprintf("load iar -m %s %s / password %s/DefaultMember.IAR", scBackup, first, last); I("Loading default member IAR for %s %s in sim %s (pane %s), this might take a couple of minutes.", first, last, name, ourSims->backup); V("In pane %s -> %s", ourSims->backup, c); -- cgit v1.1