Skip to content

Commit a538284

Browse files
committed
Cstyled code.
1 parent e2af25f commit a538284

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

proc.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,11 @@
718718
...
719719
\end{verbatim}
720720

721+
Also note that normally \texttt{ls} prints its command name before the colon.
722+
However, given that \texttt{NULL} was put in place of \texttt{argv[0]}, the
723+
command name is printed as an empty string. The '\texttt{:}' character then
724+
leads the output lines, adding to the confusion.
725+
721726
Example: \example{exec/execl-buggy.c}
722727
\end{itemize}
723728

@@ -1231,7 +1236,7 @@
12311236
p1 = addr = \emprg{mmap}(0, fsz, PROT\_READ | PROT\_WRITE,
12321237
MAP\_SHARED, fd, 0);
12331238
p2 = p1 + fsz - 1;
1234-
while(p1<p2) \{
1239+
while(p1 < p2) \{
12351240
c = *p1; *p1++ = *p2; *p2-- = c;
12361241
\}
12371242
\emprg{munmap}(addr, fsz);

0 commit comments

Comments
 (0)