@@ -81,14 +81,14 @@ extern char Display_Name[128];
8181char Display_Name [128 ];
8282extern char iconpixmapfile [1024 ];
8383char 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 ];
8886extern char cursorColor [255 ];
8987char cursorColor [255 ] = {0 };
9088extern char foregroundColorName [64 ];
9189extern char backgroundColorName [64 ];
90+ extern char windowTitle [255 ];
91+
9292
9393extern char sysout_name_cl [];
9494extern 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