Mercurial > hg > xemacs-beta
comparison src/process-nt.c @ 400:a86b2b5e0111 r21-2-30
Import from CVS: tag r21-2-30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:14:34 +0200 |
parents | 74fd4e045ea6 |
children | 2f8bb876ab1d |
comparison
equal
deleted
inserted
replaced
399:376370fb5946 | 400:a86b2b5e0111 |
---|---|
579 new_space += strlen(env[i]) + 1; | 579 new_space += strlen(env[i]) + 1; |
580 } | 580 } |
581 new_space++; | 581 new_space++; |
582 | 582 |
583 /* Allocate space and copy variables into it */ | 583 /* Allocate space and copy variables into it */ |
584 penv = proc_env = alloca(new_space); | 584 penv = proc_env = (char*) alloca(new_space); |
585 for (i = 0; i < new_length; i++) | 585 for (i = 0; i < new_length; i++) |
586 { | 586 { |
587 strcpy(penv, env[i]); | 587 strcpy(penv, env[i]); |
588 penv += strlen(env[i]) + 1; | 588 penv += strlen(env[i]) + 1; |
589 } | 589 } |