dtcreate: Add missing prototypes and more (64-bit)
- Fix missing prototypes - Fix some 64-bit related problems (XtVaGetValues) - Fix crash on dtcreate startup in create_applicationShell1() - Add XmeFlushIconFileCache() prototype from <Xm/IconFileP.h>
This commit is contained in:
committed by
Jon Trulson
parent
3eaeffaf7e
commit
27bc7d6bec
@@ -30,10 +30,12 @@
|
||||
/*****************************************************************************/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <Dt/Icon.h>
|
||||
#include <X11/cursorfont.h>
|
||||
#include "UxXt.h"
|
||||
#include <libgen.h>
|
||||
#include <Dt/HourGlass.h>
|
||||
|
||||
#include "dtcreate.h"
|
||||
#include "CreateActionAppShell.h"
|
||||
@@ -51,7 +53,7 @@ char * ReplaceSpaces(char *pszName)
|
||||
char *ptr;
|
||||
|
||||
newName = (char *)XtMalloc(strlen(pszName) + 1);
|
||||
memset(newName, 0, sizeof(newName));
|
||||
memset(newName, 0, strlen(pszName) + 1);
|
||||
strcpy(newName, pszName);
|
||||
ptr = strrchr(newName, ' ');
|
||||
if (ptr) {
|
||||
@@ -185,7 +187,7 @@ char * GetCoreName(char *pszFullName)
|
||||
name = pszFullName;
|
||||
}
|
||||
newName = (char *)malloc(strlen(name) + 1);
|
||||
memset(newName, 0, sizeof(newName));
|
||||
memset(newName, 0, strlen(name) + 1);
|
||||
strcpy(newName, name);
|
||||
ptr = strrchr(newName, '.');
|
||||
if (ptr) {
|
||||
@@ -210,7 +212,7 @@ void load_icons (Widget wid, XtPointer client_data,
|
||||
char *full_name, *path_and_base_name, *type_name, *size_name;
|
||||
char *base_name;
|
||||
char *ptr;
|
||||
int iSource;
|
||||
XtArgVal /* int */ iSource;
|
||||
FiletypeData *pFtD;
|
||||
|
||||
/*****************************************/
|
||||
|
||||
Reference in New Issue
Block a user