--- ripmime-1.4.0.9/MIME_headers.c.orig 2010-11-07 12:38:52.994063648 -0800 +++ ripmime-1.4.0.9/MIME_headers.c 2010-11-07 12:39:06.395161970 -0800 @@ -2239,7 +2239,7 @@ { if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIME_parse_contentlocation:DEBUG: filename = %s\n", FL, p); snprintf(hinfo->name, sizeof(hinfo->name),"%s",p); - snprintf(hinfo->filename, sizeof(hinfo->name),"%s",p); + snprintf(hinfo->filename, sizeof(hinfo->filename),"%s",p); FNFILTER_filter(hinfo->filename, _MIMEH_FILENAMELEN_MAX); SS_push(&(hinfo->ss_filenames), hinfo->filename, strlen(hinfo->filename));