Fixed memory allocation of 'sandbox_parent_own_orbit_dir'.
authorshort <>
Tue, 17 Jun 2003 07:49:20 +0000 (07:49 +0000)
committershort <>
Tue, 17 Jun 2003 07:49:20 +0000 (07:49 +0000)
src/libcaptive/sandbox/split.c

index eef6285..bdb9dc4 100644 (file)
@@ -346,7 +346,7 @@ gboolean errbool;
 
        /* FIXME: Security: Duplicate giop_tmpdir_init() here. */
        if (!sandbox_parent_own_orbit_dir) {
-               sandbox_parent_own_orbit_dir=captive_printf_alloca("/tmp/captive-orbit-%d",getpid());
+               sandbox_parent_own_orbit_dir=g_strdup_printf("/tmp/captive-orbit-%d",getpid());
                if (mkdir(sandbox_parent_own_orbit_dir,0700)) {
 DIR *dir;
 struct dirent *dirent;