Re: bug in mc 4.5.55.
- From: "Andrew V. Samoilov" <sav bcs zp ua>
- To: "absolut SKol." <skol sbox tugraz at>
- Cc: mc-devel gnome org
- Subject: Re: bug in mc 4.5.55.
- Date: Mon, 20 Jan 2003 16:43:42 +0200
Hi, Josef!
absolut SKol. wrote:
hi there,
when i try to start the mc-4.5.55 under linux (redhat-8.0,
kernel-2.4.19), i get a seg-fault. i found out that the problem is related
to a corrupt ini-file (~/.mc/ini). the corrupt file is attached to this
e-mail.
Fixed in CVS. Next version will be released soon.
Thanks for report.
--
Regards,
Andrew V. Samoilov
Index: mc/src/profile.c
diff -u mc/src/profile.c mc/src/profile.c
--- mc/src/profile.c Thu Sep 26 19:13:47 2002
+++ mc/src/profile.c Mon Jan 20 09:33:02 2003
@@ -232,10 +232,22 @@
} /* switch */
} /* while ((c = getc (f)) != EOF) */
- if (c == EOF && state == KeyValue){
+
+ switch (state) {
+ case KeyValue:
*next = '\0';
SecHeader->Keys->Value = str_translate_newline_dup (CharBuffer);
+ break;
+ case OnSecHeader: { /* Broken initialization file */
+ TSecHeader *link = SecHeader->link;
+ g_free (SecHeader);
+ SecHeader = link;
+ fprintf (stderr, "Warning: Corrupted initialization file `%s'\n",
+ file);
+ break;
+ }
}
+
fclose (f);
return SecHeader;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]