1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- openMotif-2.2.2.orig/clients/mwm/WmResParse.c
+++ openMotif-2.2.2/clients/mwm/WmResParse.c
@@ -2411,7 +2411,7 @@
if (MwmBehavior)
{
strcpy(cfileName, LIBDIR);
- strncat(cfileName, "/", MAXWMPATH-strlen(cfileName));
+ strncat(cfileName, "/mwm/", MAXWMPATH-strlen(cfileName));
strncat(cfileName, LANG, MAXWMPATH-strlen(cfileName));
strncat(cfileName, SLASH_MWMRC, MAXWMPATH - strlen(cfileName));
}
@@ -2427,7 +2427,7 @@
* Try /$LANG/system.mwmrc within the install tree
*/
strcpy(cfileName, LIBDIR);
- strncat(cfileName, "/", MAXWMPATH-strlen(cfileName));
+ strncat(cfileName, "/mwm/", MAXWMPATH-strlen(cfileName));
strncat(cfileName, LANG, MAXWMPATH-strlen(cfileName));
strncat(cfileName, SLASH_MWMRC, MAXWMPATH - strlen(cfileName));
#endif /* WSM */
@@ -2449,7 +2449,7 @@
if (MwmBehavior)
{
strcpy(cfileName, LIBDIR);
- strncat(cfileName, SLASH_MWMRC, MAXWMPATH - strlen(cfileName));
+ strncat(cfileName, "/mwm" SLASH_MWMRC, MAXWMPATH - strlen(cfileName));
#ifdef PANELIST
fileP = fopen (cfileName, "r");
#else /* PANELIST */
@@ -2473,7 +2473,7 @@
* Try /system.mwmrc within the install tree
*/
strcpy(cfileName, LIBDIR);
- strncat(cfileName, SLASH_MWMRC, MAXWMPATH - strlen(cfileName));
+ strncat(cfileName, "/mwm" SLASH_MWMRC, MAXWMPATH - strlen(cfileName));
if (LANG != NULL)
{
|