Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41197
b: refs/heads/master
c: 035ed7a
h: refs/heads/master
i:
  41195: 7f4d04b
v: v3
  • Loading branch information
Thomas Maier authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 2230808 commit 8f27ca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06a4bcae1ff2cd5f6f42bd74add85ec785a26343
refs/heads/master: 035ed7a49447bc8e15d4d9316fc6a359b2d94333
3 changes: 3 additions & 0 deletions trunk/fs/sysfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ fill_write_buffer(struct sysfs_buffer * buffer, const char __user * buf, size_t
count = PAGE_SIZE - 1;
error = copy_from_user(buffer->page,buf,count);
buffer->needs_read_fill = 1;
/* if buf is assumed to contain a string, terminate it by \0,
so e.g. sscanf() can scan the string easily */
buffer->page[count] = 0;
return error ? -EFAULT : count;
}

Expand Down

0 comments on commit 8f27ca7

Please sign in to comment.