Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor error string correction.
  • Loading branch information
icculus committed Jul 28, 2002
1 parent 989fd38 commit d302b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/os2.c
Expand Up @@ -516,7 +516,7 @@ LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname,
ULONG count = 1;
APIRET rc;

BAIL_IF_MACRO(strlen(dirname) > sizeof (spec) - 5, ERR_OS_ERROR, NULL);
BAIL_IF_MACRO(strlen(dirname) > sizeof (spec) - 5, ERR_BAD_FILENAME, NULL);
strcpy(spec, dirname);
strcat(spec, (spec[strlen(spec) - 1] != '\\') ? "\\*.*" : "*.*");

Expand Down

0 comments on commit d302b1e

Please sign in to comment.