* we have now several bstrs:
[citadel.git] / webcit / downloads.c
index 2ed8e247c51da2d559fd3cf6578d087a41ef461f..a208e51b7dc317fb4248c7dbe94bcab4ca32344e 100644 (file)
@@ -99,7 +99,7 @@ void display_pictureview(void)
        int n = 0;
                
 
-       if (atol(bstr("frame")) == 1) {
+       if (lbstr("frame") == 1) {
 
                output_headers(1, 1, 2, 0, 0, 0);
                wprintf("<div id=\"banner\">\n");
@@ -158,8 +158,9 @@ void display_mime_icon(void)
 {
        char FileBuf[SIZ];
        const char *FileName;
+       size_t tlen;
 
-       FileName = GetIconFilename(bstr("type"), strlen(bstr("type")));
+       FileName = GetIconFilename(xbstr("type", &tlen), tlen);
 
        if (FileName == NULL)
                snprintf (FileBuf, SIZ, "%s%s", static_dirs[0], "/diskette_24x.gif");