mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-15 16:13:57 +00:00
Use consistent style for pointer declarations and casts
This commit is contained in:
@@ -37,7 +37,7 @@ extern "C" {
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void NGAGE_GetAppPath(char* path)
|
||||
void NGAGE_GetAppPath(char *path)
|
||||
{
|
||||
TBuf<512> aPath;
|
||||
|
||||
@@ -50,7 +50,7 @@ void NGAGE_GetAppPath(char* path)
|
||||
CnvUtfConverter::ConvertFromUnicodeToUtf8(utf8Path, aPath);
|
||||
|
||||
// Copy UTF-8 data to the provided char* buffer.
|
||||
strncpy(path, (const char*)utf8Path.Ptr(), utf8Path.Length());
|
||||
strncpy(path, (const char *)utf8Path.Ptr(), utf8Path.Length());
|
||||
path[utf8Path.Length()] = '\0';
|
||||
|
||||
// Replace backslashes with forward slashes.
|
||||
|
||||
Reference in New Issue
Block a user