wok-6.x diff linld/stuff/src/LINLD.CPP @ rev 20477

Rebuild perl in 32 bits
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 17 20:44:06 2018 +0200 (2018-10-17)
parents bcdfc23ee041
children f0d71e920c5a
line diff
     1.1 --- a/linld/stuff/src/LINLD.CPP	Sat Sep 29 15:27:00 2018 +0200
     1.2 +++ b/linld/stuff/src/LINLD.CPP	Wed Oct 17 20:44:06 2018 +0200
     1.3 @@ -35,7 +35,7 @@
     1.4      );
     1.5  }
     1.6  
     1.7 -static char _cmdline[128];
     1.8 +static char buf_cmdline[128];
     1.9  int main(int argc, char *argv[]) {
    1.10  
    1.11      (void) argc;
    1.12 @@ -112,12 +112,12 @@
    1.13              topmem = strtol(s);
    1.14  	    goto addincmdline;
    1.15          }
    1.16 -        else if(cmdline == (const char *) _cmdline + 1) {
    1.17 +        else if(cmdline == (const char *) buf_cmdline + 1) {
    1.18  addincmdline:
    1.19 -	    strcatb(_cmdline,*argv);
    1.20 +	    strcatb(buf_cmdline,*argv);
    1.21          }
    1.22  	else if(i == 1 && fileattr(s) != -1) {
    1.23 -	    cmdline = (const char *) _cmdline + 1;
    1.24 +	    cmdline = (const char *) buf_cmdline + 1;
    1.25  	    goto set_kernel_name;
    1.26          }
    1.27  	else