Commit:     880afc4d76af452267174b5989943f081c1db2c0
Parent:     6192bd536f96c6a0d969081bc71ae24f9319bfdc
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 00:25:42 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 11:15:01 2007 -0700

    oss: strlcpy is smart enough
    strlcpy already accounts for the trailing zero in its length
    computation, so there is no need to substract one to the buffer size.
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 sound/oss/btaudio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/oss/btaudio.c b/sound/oss/btaudio.c
index f813ae9..4d5cf05 100644
--- a/sound/oss/btaudio.c
+++ b/sound/oss/btaudio.c
@@ -344,7 +344,7 @@ static int btaudio_mixer_ioctl(struct inode *inode, struct 
file *file,
        if (cmd == SOUND_OLD_MIXER_INFO) {
                _old_mixer_info info;
-                strlcpy(,"bt878",sizeof(;
+                strlcpy(, "bt878", sizeof(;
                 strlcpy(,"Brooktree Bt878 audio",sizeof(;
                 if (copy_to_user(argp, &info, sizeof(info)))
                         return -EFAULT;
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

Reply via email to