#include <SystemMgr.h> // SysDoze()...
#include <SysUtils.h>
-#ifdef defined (__WXPALMOS6__)
+#ifdef __WXPALMOS6__
extern void SysReset (void);
extern UInt32 SysTaskID (void);
#endif
return false;
}
- wxStrncpy (buf, wxSafeConvertMB2WX(id), maxSize - 1);
+ wxStrlcpy(buf, wxSafeConvertMB2WX(id), maxSize);
// free the buffer
MemPtrUnlock(id);
switch (wFlags) {
case wxSHUTDOWN_POWEROFF:
// TODO: turn off lamps
-#ifdef defined (__WXPALMOS6__)
+#ifdef __WXPALMOS6__
//extern void SysReset (void);
//extern UInt32 SysTaskID (void);
#define SysReset()