Browse Source

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

Samuel Thibault 10 years ago
parent
commit
a4975df2fa
1 changed files with 1 additions and 1 deletions
  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",