projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c59d4e
)
* removed possibly dangerous code
author
Wilfried Göesgens
<willi@citadel.org>
Sun, 20 Apr 2008 11:44:04 +0000
(11:44 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sun, 20 Apr 2008 11:44:04 +0000
(11:44 +0000)
webcit/downloads.c
patch
|
blob
|
history
diff --git
a/webcit/downloads.c
b/webcit/downloads.c
index a208e51b7dc317fb4248c7dbe94bcab4ca32344e..19758af359d18a457bb0086b3850babf7752559b 100644
(file)
--- a/
webcit/downloads.c
+++ b/
webcit/downloads.c
@@
-158,9
+158,11
@@
void display_mime_icon(void)
{
char FileBuf[SIZ];
const char *FileName;
+ char *MimeType;
size_t tlen;
- FileName = GetIconFilename(xbstr("type", &tlen), tlen);
+ MimeType = xbstr("type", &tlen);
+ FileName = GetIconFilename(MimeType, tlen);
if (FileName == NULL)
snprintf (FileBuf, SIZ, "%s%s", static_dirs[0], "/diskette_24x.gif");