remember how to write C code

been a while!
master
Joey Hess 2008-10-24 15:49:55 -04:00
parent 146192d5b0
commit 4a7ac5c251
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ int main (int argc, char **argv) {
$envsave
newenviron[i++]="HOME=$ENV{HOME}";
newenviron[i++]="WRAPPED_OPTIONS=$configstring";
asprintf(newenviron[i++], "CALLER_UID=%i", getuid());
asprintf(&s, "CALLER_UID=%i", getuid());
newenviron[i++]=s;
newenviron[i]=NULL;
environ=newenviron;