* upsie. that conversion to strbuf was still hanging around, heres the rest of it.
[citadel.git] / webcit / downloads.c
index 84409acd78e7a10110b827dc4542a06311d350e8..8d4eb33b6e1d6a4c63ae7e63f12f3a8581414694 100644 (file)
@@ -322,10 +322,18 @@ void upload_file(void)
        char buf[1024];
        long bytes_transmitted = 0;
        long blocksize;
+       const StrBuf *Desc;
        wcsession *WCC = WC;     /* stack this for faster access (WC is a function) */
 
        MimeType = GuessMimeType(ChrPtr(WCC->upload), WCC->upload_length); 
-       serv_printf("UOPN %s|%s|%s", WCC->upload_filename, MimeType, bstr("description"));
+
+               Desc = sbstr("description");
+
+       serv_printf("UOPN %s|%s|%s", 
+                   ChrPtr(WCC->upload_filename), 
+                   MimeType, 
+                   ChrPtr(Desc));
+
        serv_getln(buf, sizeof buf);
        if (buf[0] != '2')
        {