]> git.e2factory.org Git - e2factory.git/commitdiff
Cast argv to the right pointer type
authorTobias Ulmer <tu@emlix.com>
Tue, 5 Feb 2013 19:07:05 +0000 (20:07 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:15 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2util.c

index cb1b0747d8b14a85a87676f8d781b825f9c4b84e..08bd2b88852bff485943cdd2732a0a88bc9a3d07 100644 (file)
@@ -707,7 +707,7 @@ do_exec(lua_State *lua)
                return 1;
        }
        args[i] = NULL;
-       rc = execvp(args[0], &args[0]);
+       rc = execvp(args[0], (char * const*)args);
        lua_pushboolean(lua, rc == 0);
 
        return 1;