Update processes.tex

This commit is contained in:
Lawrence Angrave
2026-09-11 15:13:03 -05:00
committed by GitHub
parent 61047c0cab
commit 1e5db4ee6a
+2 -1
View File
@@ -862,7 +862,8 @@ By allowing someone to access a shell version of the environment, the program ca
\begin{lstlisting}[language=C]
int main(int argc, char**argv) {
char *to_exec = asprintf("ls %s", argv[1]);
char *to_exec;
asprintf(&to_exec, "ls %s", argv[1]);
system(to_exec);
}
\end{lstlisting}