summaryrefslogtreecommitdiffstats
path: root/runtime/string.c
diff options
context:
space:
mode:
authorhunt <hunt>2006-07-12 17:28:37 +0000
committerhunt <hunt>2006-07-12 17:28:37 +0000
commit6eb1297e37ac4a8c008516546f846230844a10cc (patch)
treef4d70cd9ccb8580b49f4e80a8f3dbfb868e1a435 /runtime/string.c
parent0a6626c316a4fe76a2752ae003dd26f8ed8764df (diff)
downloadsystemtap-steved-6eb1297e37ac4a8c008516546f846230844a10cc.tar.gz
systemtap-steved-6eb1297e37ac4a8c008516546f846230844a10cc.tar.xz
systemtap-steved-6eb1297e37ac4a8c008516546f846230844a10cc.zip
Minor cleanup
Diffstat (limited to 'runtime/string.c')
-rw-r--r--runtime/string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/string.c b/runtime/string.c
index 740a7567..d0a53a6a 100644
--- a/runtime/string.c
+++ b/runtime/string.c
@@ -240,9 +240,9 @@ void _stp_text_str(char *outstr, char *in, int len, int quoted, int user)
}
if (user) {
- if (!access_ok(VERIFY_READ, (char __user *)in, len))
+ if (!access_ok(VERIFY_READ, (char __user *)in, 1))
goto bad;
- if (__get_user(c, (char __user *)in) < 0)
+ if (__get_user(c, in))
goto bad;
} else
c = *in;
@@ -310,7 +310,7 @@ void _stp_text_str(char *outstr, char *in, int len, int quoted, int user)
len -= num;
in++;
if (user) {
- if (__get_user(c, (char __user *)in) < 0)
+ if (__get_user(c, in))
goto bad;
} else
c = *in;