From 8d2e746e17e36ecbb6678f81c0bcaec4d2db627c Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 7 Jun 2007 16:24:39 +0000 Subject: 2007-06-07 Martin Hunt PR 4075 fix from Ananth Mavinakayanahalli * string.h (_stp_get_user): Define. * string.c (_stp_text_str): Use _stp_get_user(). --- runtime/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/string.c') diff --git a/runtime/string.c b/runtime/string.c index 0cc169e7..804af445 100644 --- a/runtime/string.c +++ b/runtime/string.c @@ -75,7 +75,7 @@ void _stp_text_str(char *outstr, char *in, int len, int quoted, int user) if (user) { if (!access_ok(VERIFY_READ, (char __user *)in, 1)) goto bad; - if (__get_user(c, in)) + if (__stp_get_user(c, in)) goto bad; } else c = *in; @@ -143,7 +143,7 @@ void _stp_text_str(char *outstr, char *in, int len, int quoted, int user) len -= num; in++; if (user) { - if (__get_user(c, in)) + if (__stp_get_user(c, in)) goto bad; } else c = *in; -- cgit