[vlc-devel] commit: Fixed crashes introduced in [ aee0317592c43b4fa6d9d84bc2e70968e4b93f5f] ( Felix Paul Kühne )

git version control git at videolan.org
Tue Aug 18 14:33:40 CEST 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Aug 18 14:33:22 2009 +0200| [4fd41d71393f627f94c48f8d867f0a8e2da34902] | committer: Felix Paul Kühne 

Fixed crashes introduced in [aee0317592c43b4fa6d9d84bc2e70968e4b93f5f]

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4fd41d71393f627f94c48f8d867f0a8e2da34902
---

 src/text/filesystem.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/text/filesystem.c b/src/text/filesystem.c
index 6bec646..f6bab4a 100644
--- a/src/text/filesystem.c
+++ b/src/text/filesystem.c
@@ -91,12 +91,12 @@ static int convert_path (const char *restrict path, wchar_t *restrict wpath)
  */
 int utf8_open (const char *filename, int flags, ...)
 {
-    mode_t mode = 0;
+    unsigned int mode = 0;
     va_list ap;
 
     va_start (ap, flags);
     if (flags & O_CREAT)
-        mode = va_arg (ap, mode_t);
+        mode = va_arg (ap, unsigned int);
     va_end (ap);
 
 #ifdef UNDER_CE




More information about the vlc-devel mailing list