On Sun, 4 Jun 2006, Hendrik Sattler wrote:
Am Sonntag, 4. Juni 2006 12:20 schrieb Josip Rodin:
That's one funky patch. The previous version of the variable wasn't getting
null-terminated?
A const string is always null-terminated. Maybe the problem was with it being
const?
Right, AFAICT the compiler was assuming that buffer is const. Later in the
code it is used to retrieve the architecture string from the PROM, and the
buffer[4] char then determines the arch. With the const assumption this
value was incorrectly set to 'c' at compile time, leading to misdetection
of the architecture.
Best regards,
Jurij Smakov [EMAIL PROTECTED]
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]