Explorar o código

port r14811 from 1.2: fix off-by-one allocation

Samuel Thibault %!s(int64=11) %!d(string=hai) anos
pai
achega
a4975df2fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/loader.c

+ 1 - 1
tests/loader.c

@@ -98,7 +98,7 @@ static void launch_gdb(const char *exe)
 		{
 			/* Run gdb with Libtool.  */
 			gdb = alloca(strlen(top_builddir)
-				     + sizeof("libtool") + 1);
+				     + sizeof("/libtool") + 1);
 			strcpy(gdb, top_builddir);
 			strcat(gdb, "/libtool");
 			err = execl(gdb, "gdb", "--mode=execute",