From dc79b8d7615bf758c9da7e4243f5d470b344c9a0 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 3 Mar 2015 16:50:30 +0000 Subject: [PATCH] waylandsink: g_mkstemp is safer than mkstep --- ext/wayland/wlshmallocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/wayland/wlshmallocator.c b/ext/wayland/wlshmallocator.c index 183795c3bd..6d82b23285 100644 --- a/ext/wayland/wlshmallocator.c +++ b/ext/wayland/wlshmallocator.c @@ -53,7 +53,7 @@ gst_wl_shm_allocator_alloc (GstAllocator * allocator, gsize size, snprintf (filename, 1024, "%s/%s-%d-%s", g_get_user_runtime_dir (), "wayland-shm", init++, "XXXXXX"); - fd = mkstemp (filename); + fd = g_mkstemp (filename); if (fd < 0) { GST_ERROR_OBJECT (self, "opening temp file %s failed: %s", filename, strerror (errno));