Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=393bf5573269979aa3fb55d1bdd0db4fcb288f99
Commit:     393bf5573269979aa3fb55d1bdd0db4fcb288f99
Parent:     a2e521e85c04af3511af3ea8971efb4ef8bde533
Author:     Hans Verkuil <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 18 03:22:32 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:01:29 2008 -0200

    V4L/DVB (6467): v4l2-common: minor cleanups
    
    Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/v4l2-common.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/media/video/v4l2-common.c 
b/drivers/media/video/v4l2-common.c
index 61ebdb0..c056ff6 100644
--- a/drivers/media/video/v4l2-common.c
+++ b/drivers/media/video/v4l2-common.c
@@ -1028,13 +1028,12 @@ int v4l2_i2c_attach(struct i2c_adapter *adapter, int 
address, struct i2c_driver
        client->addr = address;
        client->adapter = adapter;
        client->driver = driver;
-       snprintf(client->name, sizeof(client->name) - 1, name);
+       strlcpy(client->name, name, sizeof(client->name));
 
        err = probe(client);
        if (err == 0) {
                i2c_attach_client(client);
-       }
-       else {
+       } else {
                kfree(client);
        }
        return err != -ENOMEM ? 0 : err;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to