lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Patch for 2.1.20 to try: "kernel environment"
Date
In linux.dev.kernel, article <5aoroq$1al@nntp.Stanford.EDU>,
dhinds@hyper.stanford.edu (David Hinds) writes:
> --- linux/fs/proc/array.c.orig Wed Jan 1 22:08:20 1997
> +++ linux/fs/proc/array.c Fri Jan 3 23:54:36 1997
> ...
> + len += sprintf(buffer+len, "%s\n", *p);
> ...

I would use \0 instead of \n here. /proc/*/environ does the same thing.

--
Talk of revolution is one way of avoiding reality.
-- John Kenneth Galbraith
--
Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg
Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.040 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site