Skip to content
Permalink
Browse files
Minor error string correction.
  • Loading branch information
icculus committed Jul 28, 2002
1 parent 989fd38 commit d302b1e1697764ba219e61587d8995031770143f
Showing with 1 addition and 1 deletion.
  1. +1 −1 platform/os2.c
@@ -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] != '\\') ? "\\*.*" : "*.*");

0 comments on commit d302b1e

Please sign in to comment.