X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fproc%2Fproc_devtree.c;h=eca471bc85125626d32c011a820fd828f3124837;hb=0a4908e19fd016d60403fc76cf38b2d08d21e2d2;hp=abdf068bc27f4cb9b7699d4a6b478725aa25c180;hpb=86579dd06deecfa6ac88d5e84e4d63c397cd6f6d;p=linux-2.6 diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index abdf068bc2..eca471bc85 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c @@ -38,7 +38,7 @@ static int property_read_proc(char *page, char **start, off_t off, n = count; else *eof = 1; - memcpy(page, pp->value + off, n); + memcpy(page, (char *)pp->value + off, n); *start = page; return n; }