XmeFlushIconFileCache(NULL);
for (lcv = 0; lcv < count; lcv++) {
- sprintf (iconfile, "%s%s", path, filelist[lcv]->d_name);
+ snprintf(iconfile, sizeof(iconfile), "%s%s", path, filelist[lcv]->d_name);
ptr = strstr(filelist[lcv]->d_name, ".m.");
if (ptr) {
*ptr = '\0';
/* This is the empty directory case */
/******************************************************************/
} else {
- strcpy(iconfile, GETMESSAGE(11, 60, "[Empty]"));
+ snprintf(iconfile, sizeof(iconfile), "%s", GETMESSAGE(11, 60, "[Empty]"));
xmstring = XmStringCreateLocalized(iconfile);
XtVaSetValues ((Widget) icons_in_container[0],
XmNstring, xmstring,
}
XtManageChild (icon_scrolled_container);
+ free(path);
return;
}
/********* WARNING - this needs to be translated !!! ***********/
strcpy(buffer, "There is no set of icons with that filename in the icon folders.\n");
- strcat(buffer, "Move the icons into one of the icon folers, then select \"Name OK\".\n");
+ strcat(buffer, "Move the icons into one of the icon folders, then select \"Name OK\".\n");
strcat(buffer, "Or, to select a different set of icons, select \"Change Name\".\n");
strcat(buffer, "\nIf you are a software developer creating a registration package,\n");
strcat(buffer, "ignore this message and select \"Name OK\".");
filter = (char *)XmStringToText (listcb->item);
apply_filter (filter);
/* XtManageChild (icon_scrolled_win); */
+ free(filter);
}
UxIcon_selection_dialogContext = UxSaveCtx;
}
XmNleftWidget, icon_container_label,
XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
XmNbottomOffset, 10,
- XmNbottomWidget, XmATTACH_NONE,
+ XmNbottomWidget, None,
XmNbottomAttachment, XmATTACH_WIDGET,
NULL );