* util.c (load_mc_home_file): Eliminate g_strdup_printf().
- From: "Andrew V. Samoilov" <andrew email zp ua>
- To: proski gnu org
- Cc: mc-devel gnome org
- Subject: * util.c (load_mc_home_file): Eliminate g_strdup_printf().
- Date: Thu, 20 Nov 2003 18:35:09 +0200 (EET)
Hello, Pavel!
--
Regards,
Andrew V. Samoilov.
src/ChangeLog:
* util.c (load_mc_home_file): Eliminate g_strdup_printf().
--- util.c~ Mon Oct 27 11:36:29 2003
+++ util.c Mon Nov 17 17:09:50 2003
@@ -628,12 +628,15 @@ char *load_mc_home_file (const char *fil
hintfile_base = concat_dir_and_file (mc_home, filename);
lang = guess_message_value ();
- hintfile = g_strdup_printf ("%s.%s", hintfile_base, lang);
+ hintfile = g_strconcat (hintfile_base, ".", lang, NULL);
data = load_file (hintfile);
if (!data) {
g_free (hintfile);
- hintfile = g_strdup_printf ("%s.%.2s", hintfile_base, lang);
+ /* hintfile = g_strdup_printf ("%s.%.2s", hintfile_base, lang); */
+ if (lang[0] && lang[1])
+ lang[2] = 0;
+ hintfile = g_strconcat (hintfile_base, ".", lang, NULL);
data = load_file (hintfile);
if (!data) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]