[Top] [All Lists]

[PATCH] small time list process error in prom_getenv()

Subject: [PATCH] small time list process error in prom_getenv()
From: Freddy Spierenburg <>
Date: Mon, 27 Mar 2006 09:43:52 +0200
Original-recipient: rfc822;
User-agent: Mutt/1.5.11+cvs20060126

I found a small time bug in prom_getenv() for which I like to
share the fix with y'all.

prom_envp is an array with two elements per environment variable.
So for instance element 0 is memsize and element 1 is 0x08000000
for the environment variable memsize=0x08000000.

The code for prom_getenv() only skips one element when it's in
search for the next environment variable. It should of course
step two elements.

I found this error in two files and for both I include a patch to
fix the problem.

Signed-off-by: Freddy Spierenburg <>

$ cat ~/.signature
Freddy Spierenburg <>
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read before complain!

Attachment: prom.pnx8550.patch
Description: Text document

Attachment: prom.au1000.patch
Description: Text document

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>