* if we need the first urlpart, we musn't move it just left, but add another one...
[citadel.git] / webcit / downloads.c
index 23bf5f801391e0b410fbd920e3005b4bae7e1ddd..d980ce1d330b674e33d08f4365a9311e6bf21fe0 100644 (file)
@@ -391,7 +391,7 @@ void download_file(void)
        /* Setting to nonzero forces a MIME type of application/octet-stream */
        int force_download = 1;
        
-       safestrncpy(buf, ChrPtr(WC->UrlFragment1), sizeof buf);
+       safestrncpy(buf, ChrPtr(WC->UrlFragment2), sizeof buf);
        unescape_input(buf);
        serv_printf("OPEN %s", buf);
        serv_getln(buf, sizeof buf);