Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346850
b: refs/heads/master
c: d95dcaa
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Bob Liu committed Dec 13, 2012
1 parent f249281 commit 9227c42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9dfcdbd76b14a24e751d6e0bfb29dc262c69b0c
refs/heads/master: d95dcaa06ba895ec379d80b35c25ddba3a71943a
4 changes: 2 additions & 2 deletions trunk/arch/blackfin/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ copy_to_user(void __user *to, const void *from, unsigned long n)
*/

static inline long __must_check
strncpy_from_user(char *dst, const char *src, long count)
strncpy_from_user(char *dst, const char __user *src, long count)
{
char *tmp;
if (!access_ok(VERIFY_READ, src, 1))
return -EFAULT;
strncpy(dst, src, count);
strncpy(dst, (const char __force *)src, count);
for (tmp = dst; *tmp && count > 0; tmp++, count--) ;
return (tmp - dst);
}
Expand Down

0 comments on commit 9227c42

Please sign in to comment.