commit | 96840aa00a031069a136ec4c55d0bdd09ac6d3a7 | [log] [tgz] |
---|---|---|
author | Davi Arnaut <davi.arnaut@gmail.com> | Fri Mar 24 03:18:42 2006 -0800 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Fri Mar 24 07:33:31 2006 -0800 |
tree | f93592ca47f2412aa0cce3ce4c116d1678a42239 | |
parent | 6687a97d4041f996f725902d2990e5de6ef5cbe5 [diff] |
[PATCH] strndup_user() This patch series creates a strndup_user() function to easy copying C strings from userspace. Also we avoid common pitfalls like userspace modifying the final \0 after the strlen_user(). Signed-off-by: Davi Arnaut <davi.arnaut@gmail.com> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>