]> sipb.mit.edu Git - ikiwiki.git/commitdiff
remember how to write C code
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 24 Oct 2008 19:49:55 +0000 (15:49 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 24 Oct 2008 19:49:55 +0000 (15:49 -0400)
been a while!

IkiWiki/Wrapper.pm

index eb6228dc314dd2b24d6740f34e08c8f73e437512..0a2b8d4f83c80b648d33d2f17474dc5957e91769 100644 (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;