X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=exec.c;h=ece7ec29aa233051cf10bd5c4f3b1b6adfd14cfe;hp=2a40bc0dbb17b831aaa1d15376c1119af44910cb;hb=HEAD;hpb=f33cf243ae1cb5657cccb7c43c99093936093b4a diff --git a/exec.c b/exec.c index 2a40bc0..ece7ec2 100644 --- a/exec.c +++ b/exec.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2003-2011 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* SPDX-License-Identifier: GPL-2.0 */ /** \file exec.c Helper functions for spawning new processes. */ @@ -50,7 +46,7 @@ void dss_exec(pid_t *pid, const char *file, char *const *const args) * Exec the command given as a command line. * * \param pid Will hold the pid of the created process upon return. - * \param cmdline Holds the command and its arguments, seperated by spaces. + * \param cmdline Holds the command and its arguments, separated by spaces. * * This function uses fork/exec to create a new process. * @@ -60,7 +56,7 @@ void dss_exec_cmdline_pid(pid_t *pid, const char *cmdline) { char **argv, *tmp = dss_strdup(cmdline); - split_args(tmp, &argv, " \t"); + split_args(tmp, &argv); dss_exec(pid, argv[0], argv); free(argv); free(tmp);