aboutsummaryrefslogtreecommitdiff
path: root/wfm.c
diff options
context:
space:
mode:
authortenox <as@tenoware.com>2017-01-21 01:32:08 -0800
committertenox <as@tenoware.com>2017-01-21 01:32:08 -0800
commite9d79c70ed2d6d2a89cb5dbd9ff14d7d78b6c6de (patch)
treeb2c722036b2e77059007ee9bd46fc205ecf4a3af /wfm.c
parent34d5f06f39ef4051793b8200be0cc532ebf63c8f (diff)
downloadwfm-e9d79c70ed2d6d2a89cb5dbd9ff14d7d78b6c6de.tar.gz
git rename support
Diffstat (limited to 'wfm.c')
-rw-r--r--wfm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wfm.c b/wfm.c
index 923cd4b..3643e8f 100644
--- a/wfm.c
+++ b/wfm.c
@@ -388,6 +388,15 @@ int cgiMain(void) {
fprintf(cgiOut, "Cache-Control: max-age=0, private\r\nExpires: -1\r\n");
+ memset(virt_dirname, 0, VIRT_DIRNAME_SIZE);
+ memset(phys_dirname, 0, PHYS_DIRNAME_SIZE);
+ memset(virt_filename, 0, VIRT_FILENAME_SIZE);
+ memset(phys_filename, 0, PHYS_FILENAME_SIZE);
+ memset(virt_destination, 0, VIRT_DESTINATION_SIZE);
+ memset(phys_destination, 0, PHYS_DESTINATION_SIZE);
+ memset(final_destination, 0, PHYS_DESTINATION_SIZE);
+ memset(virt_parent, 0, VIRT_DIRNAME_SIZE);
+
snprintf(ICONSURL, sizeof(ICONSURL), "%s?ea=icon&amp;name=", cgiScriptName);