gchar *outfile;
response buf;
int max;
- struct stat info;
+ GStatBuf info;
gchar* msg;
outfile = procmime_get_tmp_file_name(mimeinfo);
g_warning("Can't get the part of multipart message.");
else {
max = config.clamav_max_size * 1048576; /* maximum file size */
- if (stat(outfile, &info) == -1)
+ if (g_stat(outfile, &info) == -1)
g_warning("Can't determine file size");
else {
if (info.st_size <= max) {