[PATCH] openpromfs: fix missing NUL
authorJan Engelhardt <jengelh@gmx.de>
Sun, 25 Jun 2006 12:47:35 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:05 +0000 (10:01 -0700)
commit0928d68056fa25456830b1de9f0ee89bc37447cd
treeeafca87385013b4ff11a11192de048a0e0a0b3b3
parent2e6113908fe76a06295cb243f1f2f0eea055b0c2
[PATCH] openpromfs: fix missing NUL

tchars is not '\0'-terminated so the strtoul may run into problems.  Fix that.
 Also make tchars as big as a long in hexadecimal form would take rather than
just 16.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/openpromfs/inode.c