aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-24 15:49:55 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-24 15:49:55 -0400
commit4a7ac5c2516f14f37802604c46d1077e044dba0b (patch)
treeda5859df1a1c08f3d6105789e5396d79223ef9ca /IkiWiki
parent146192d5b01329bd8e5dfbf4045efded467151e0 (diff)
downloadikiwiki-4a7ac5c2516f14f37802604c46d1077e044dba0b.tar
ikiwiki-4a7ac5c2516f14f37802604c46d1077e044dba0b.tar.gz
remember how to write C code
been a while!
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Wrapper.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm
index eb6228dc3..0a2b8d4f8 100644
--- a/IkiWiki/Wrapper.pm
+++ b/IkiWiki/Wrapper.pm
@@ -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;