Don't call varargs open() through non-varargs type
authorRyan Lortie <desrt@desrt.ca>
Mon, 5 Nov 2012 17:22:49 +0000 (12:22 -0500)
committerRyan Lortie <desrt@desrt.ca>
Tue, 6 Nov 2012 19:40:36 +0000 (14:40 -0500)
commitb26fb3ae5cc18fa51cd6169f1b3b5c4dd74dab29
treeddf37924e9b6056c389a72cd47dfab4e6670f16d
parent77032ea390cfbb1165f57fc6a61b8e4d2055934a
Don't call varargs open() through non-varargs type

open() is probably defined varargs.  Casting a varargs function to an
equivalent non-varargs type and then calling it is undefined, but
gfileutils.c was doing exactly that.

Add some non-varargs wrappers to avoid the problem.

Problem reported by John Spencer.

https://bugzilla.gnome.org/show_bug.cgi?id=687600
glib/gfileutils.c