[physfs] globbing?

Bradley Bell btb at icculus.org
Wed Jun 11 03:13:01 EDT 2003


I noticed that a pattern like "abc*" doesn't match the file "abc", as I think it
should.
Here's a li'l patch...
-brad

diff -u -r1.1 globbing.c
--- globbing.c	2003/06/11 02:10:49	1.1
+++ globbing.c	2003/06/11 07:09:32
@@ -77,6 +77,9 @@
 
     } /* while */
 
+    if (*wildptr == '*')
+        wildptr++;
+
     return(*fnameptr == *wildptr);
 } /* matchesPattern */
 





More information about the physfs mailing list