Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338326
b: refs/heads/master
c: afc3a57
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Jonathan Cameron committed Nov 30, 2012
1 parent 5f1af1c commit 5fa656e
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: 12660138b491b56d1e70333547912c56741be5e8
refs/heads/master: afc3a57a2efc4af623df07771c6b1aef15158537
4 changes: 2 additions & 2 deletions trunk/drivers/iio/imu/adis16480.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static ssize_t adis16480_show_firmware_revision(struct file *file,
char __user *userbuf, size_t count, loff_t *ppos)
{
struct adis16480 *adis16480 = file->private_data;
char buf[6];
char buf[7];
size_t len;
u16 rev;
int ret;
Expand All @@ -134,7 +134,7 @@ static ssize_t adis16480_show_firmware_revision(struct file *file,
if (ret < 0)
return ret;

len = snprintf(buf, sizeof(buf), "%x.%x\n", rev >> 8, rev & 0xff);
len = scnprintf(buf, sizeof(buf), "%x.%x\n", rev >> 8, rev & 0xff);

return simple_read_from_buffer(userbuf, count, ppos, buf, len);
}
Expand Down

0 comments on commit 5fa656e

Please sign in to comment.