Skip to content

Commit

Permalink
Christoph Mallon: Use SDL_arraysize()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 29, 2013
1 parent 9e23d17 commit 7267ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filesystem/unix/SDL_sysfilesystem.c
Expand Up @@ -84,8 +84,8 @@ SDL_GetBasePath(void)
#if defined(__FREEBSD__)
char fullpath[PATH_MAX];
size_t buflen = sizeof (fullpath);
const int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
if (sysctl(mib, 4, fullpath, &buflen, NULL, 0) != -1) {
const int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 };
if (sysctl(mib, SDL_arraysize(mib), fullpath, &buflen, NULL, 0) != -1) {
retval = SDL_strdup(fullpath);
if (!retval) {
SDL_OutOfMemory();
Expand Down

0 comments on commit 7267ea8

Please sign in to comment.