From 34981e28c7846d205e734d4e860310a36f04f07d Mon Sep 17 00:00:00 2001 From: Camm Maguire Date: Sun, 13 Nov 2022 12:55:14 +0000 Subject: [PATCH] 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 | 3 +++ o/unixsys.c | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/h/elf32_hppa_reloc_special.h b/h/elf32_hppa_reloc_special.h index 0091005..43d218b 100644 --- a/h/elf32_hppa_reloc_special.h +++ b/h/elf32_hppa_reloc_special.h @@ -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)) diff --git a/o/unixsys.c b/o/unixsys.c index ee1dd81..977538f 100755 --- a/o/unixsys.c +++ b/o/unixsys.c @@ -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())) { -- 2.30.2