1 --- gammu/common/gsmstate.c.orig 2008-12-16 14:11:54.000000000 +0100
2 +++ gammu/common/gsmstate.c 2008-12-21 13:59:48.000000000 +0100
5 char configfile[PATH_MAX + 1];
12 /* Reset as we're using strcat */
15 + /* Try user etc dir */
16 + home_etc = getenv("HOME_ETC");
18 + strcat(configfile, home_etc);
19 + strcat(configfile, GAMMURC_NAME);
21 + error = GSM_TryReadGammuRC(configfile, result);
22 + if (error == ERR_NONE) return ERR_NONE;
25 - envpath = getenv("HOME");
27 + envpath = getenv("HOME");
29 strcat(configfile, envpath);
30 strcat(configfile, GAMMURC_NAME);
32 error = GSM_TryReadGammuRC(configfile, result);
33 if (error == ERR_NONE) return ERR_NONE;