<short summary of the patch>
authorCamm Maguire <camm@debian.org>
Sat, 29 Aug 2020 16:23:07 +0000 (17:23 +0100)
committerCamm Maguire <camm@debian.org>
Sat, 29 Aug 2020 16:23:07 +0000 (17:23 +0100)
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

gcl (2.6.12-35) unstable; urgency=medium

  * Version_2_6_13pre47

Gbp-Pq: Name Version_2_6_13pre48

h/elf32_hppa_reloc_special.h
o/unixsys.c

index 00910055781ce74fcb3b9f16f625cfb76e20f8d1..43d218b9d1e5c4ef2659a0daf91da8dac49c7396 100644 (file)
@@ -39,3 +39,6 @@ label_got_symbols(void *v1,Shdr *sec1,Shdr *sece,Sym *sym1,Sym *syme,const char
   return 0;
   
 }
+
+#undef LOAD_SYM_BY_NAME
+#define LOAD_SYM_BY_NAME(sym,st1) (!strncmp(st1+sym->st_name,"$$dyncall",8))
index ee1dd8188d29fc8a853e11c938d99b2330c11c2e..977538f2b9bea55efb99d268c43c9429f047a4cb 100755 (executable)
@@ -31,16 +31,16 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 int
 vsystem(const char *command) {
 
-  unsigned j,n=strlen(command);
-  char *z=alloca(n+1),**p1,**pp,*c;
+  unsigned j,n=strlen(command)+1;
+  char *z=alloca(n),**p1,**pp,*c;
   int s;
   pid_t pid;
 
-  memcpy(z,command,n+1);
-  for (j=0,c=z;strtok(c," \n\t");c=NULL,j++);
+  memcpy(z,command,n);
+  for (j=1,c=z;strtok(c," \n\t");c=NULL,j++);
 
-  memcpy(z,command,n+1);
-  p1=alloca((j+1)*sizeof(*p1));
+  memcpy(z,command,n);
+  p1=alloca(j*sizeof(*p1));
   for (pp=p1,c=z;(*pp=strtok(c," \n\t"));c=NULL,pp++);
 
   if (!(pid=vfork())) {