X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fdownloads.c;h=a208e51b7dc317fb4248c7dbe94bcab4ca32344e;hp=2ed8e247c51da2d559fd3cf6578d087a41ef461f;hb=9f145319b92b196662aa51cb2e3d7c392629965e;hpb=e0f09d70795f031a791eb70a649b6aa9bf652a20 diff --git a/webcit/downloads.c b/webcit/downloads.c index 2ed8e247c..a208e51b7 100644 --- a/webcit/downloads.c +++ b/webcit/downloads.c @@ -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("
\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");