aConfigData =
CFDataCreateWithBytesNoCopy(NULL,
- aConfigFileContentsBuffer,
+ (const UInt8 *)aConfigFileContentsBuffer,
aConfigFileContentsSize,
kCFAllocatorNull);
/* Compute path to excecutable */
{
char *tmp;
- strcpy(anExecutable, aBundlePath); /* .../foo */
+ strncpy(anExecutable, aBundlePath, sizeof(anExecutable)); /* .../foo */
tmp = rindex(anExecutable, '/'); /* /foo */
strncat(anExecutable, tmp, strlen(tmp)); /* .../foo/foo */
}