Fixes memset() bug
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 9 Jan 2013 02:54:46 +0000 (18:54 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 9 Jan 2013 02:54:46 +0000 (18:54 -0800)
commit47dbba2082e00966837c2106150ee29738d1b793
treebca2f8d4ec9be46afaae1b4dec08b6024820c40f
parent2885bb9dc193e5f5c22a3cbd65772f2b3d838ec4
Fixes memset() bug

When you cast an int such as 0xfe to a char, you get 0xfffffffe, and not
0x000000fe.
kern/src/string.c
kern/src/testing.c