Browse Source

svn: 2156

Bryan Drewery 21 years ago
parent
commit
8c0029ccbf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/conf.c
  2. 1 1
      src/misc.c

+ 1 - 1
src/conf.c

@@ -85,7 +85,7 @@ void spawnbot(const char *nick)
   char *run = (char *) my_calloc(1, size);
   char *run = (char *) my_calloc(1, size);
   int status = 0;
   int status = 0;
 
 
-  simple_snprintf(run, size, "%s -sB %s", binname, !checktrace ? "s" : "", replace(nick, "`", "\\`"));
+  simple_snprintf(run, size, "%s -%sB %s", binname, !checktrace ? "s" : "", replace(nick, "`", "\\`"));
   sdprintf("Spawning '%s': %s", nick, run);
   sdprintf("Spawning '%s': %s", nick, run);
   status = system(run);
   status = system(run);
   if (status == -1 || WEXITSTATUS(status))
   if (status == -1 || WEXITSTATUS(status))

+ 1 - 1
src/misc.c

@@ -676,7 +676,7 @@ restart(int idx)
   fixmod(binname);
   fixmod(binname);
 
 
   /* replace image now */
   /* replace image now */
-  char *argv[4] = { NULL, NULL, NULL, NULL, NULL };
+  char *argv[4] = { NULL, NULL, NULL, NULL };
   char shit[7] = "";
   char shit[7] = "";
 
 
   simple_sprintf(shit, "-%s%s%s%sB", !checktrace ? "s" : "", !backgrd ? "n" : "", term_z ? "t" : "", sdebug ? "D" : "");
   simple_sprintf(shit, "-%s%s%s%sB", !checktrace ? "s" : "", !backgrd ? "n" : "", term_z ? "t" : "", sdebug ? "D" : "");