Skip to content

Commit c3b7d17

Browse files
committed
Switch X11 options to use shared windowTitle and cleanup icon title variable name
1 parent 532731b commit c3b7d17

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/xlspwin.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ extern DLword *DisplayRegion68k;
3939

4040
extern int Current_Hot_X, Current_Hot_Y; /* X Cursor hotspots */
4141

42-
extern char Window_Title[255];
43-
extern char Icon_Title[255];
42+
extern char windowTitle[255];
43+
extern char iconTitle[255];
4444

4545
extern int save_argc;
4646
extern char **save_argv;
@@ -91,8 +91,8 @@ void Create_LispWindow(DspInterface dsp)
9191
unsigned int GravSize;
9292
char *WT, *IT;
9393

94-
WT = Window_Title;
95-
IT = Icon_Title;
94+
WT = windowTitle;
95+
IT = iconTitle;
9696

9797
GravSize = (dsp->ScrollBarWidth / 2) - dsp->InternalBorderWidth;
9898
Col2 = dsp->Visible.width;

src/xrdopt.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ extern char Display_Name[128];
8181
char Display_Name[128];
8282
extern char iconpixmapfile[1024];
8383
char iconpixmapfile[1024];
84-
extern char Window_Title[255];
85-
char Window_Title[255];
86-
extern char Icon_Title[255];
87-
char Icon_Title[255];
84+
extern char iconTitle[255];
85+
char iconTitle[255];
8886
extern char cursorColor[255];
8987
char cursorColor[255] = {0};
9088
extern char foregroundColorName[64];
9189
extern char backgroundColorName[64];
90+
extern char windowTitle[255];
91+
9292

9393
extern char sysout_name_cl[];
9494
extern char sysout_name_xrm[];
@@ -247,14 +247,14 @@ void read_Xoption(int *argc, char *argv[])
247247
}
248248

249249
if (XrmGetResource(rDB, "ldex.title", "Ldex.Title", str_type, &value) == True) {
250-
(void)strncpy(Window_Title, value.addr, value.size);
250+
(void)strncpy(windowTitle, value.addr, sizeof(windowTitle) - 1);
251251
} else {
252-
(void)strcpy(Window_Title, WINDOW_NAME);
252+
(void)strncpy(windowTitle, WINDOW_NAME, sizeof(windowTitle) - 1);
253253
}
254254
if (XrmGetResource(rDB, "ldex.icontitle", "Ldex.icontitle", str_type, &value) == True) {
255-
(void)strncpy(Icon_Title, value.addr, value.size);
255+
(void)strncpy(iconTitle, value.addr, value.size);
256256
} else {
257-
(void)strcpy(Icon_Title, "Medley");
257+
(void)strcpy(iconTitle, "Medley");
258258
}
259259

260260
if (XrmGetResource(rDB, "ldex.iconbitmap", "Ldex.Iconbitmap", str_type, &value) == True) {

0 commit comments

Comments
 (0)