From: Amir Shalem <amir@boom.org.il>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] small fix to firmware helper
Date: Wed, 24 Aug 2005 13:26:56 +0000 [thread overview]
Message-ID: <20050824132656.GA71619@active.ath.cx> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 81 bytes --]
small fix to firmware helper,
wrong string is being nullifed.
--
Amir.
[-- Attachment #1.2: firmware-null.diff --]
[-- Type: text/plain, Size: 504 bytes --]
diff -Nur udev-068.orig/extras/firmware/firmware_helper.c udev-068/extras/firmware/firmware_helper.c
--- udev-068.orig/extras/firmware/firmware_helper.c Thu Aug 18 20:04:49 2005
+++ udev-068/extras/firmware/firmware_helper.c Wed Aug 24 16:23:10 2005
@@ -109,7 +109,7 @@
}
snprintf(data_path, sizeof(data_path), "/sys/%s/data", devpath);
- fw_path[sizeof(data_path)-1] = '\0';
+ data_path[sizeof(data_path)-1] = '\0';
fw_fd = open(data_path, O_RDWR);
if (fw_fd < 0) {
rc = errno;
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
next reply other threads:[~2005-08-24 13:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-24 13:26 Amir Shalem [this message]
2005-08-24 19:26 ` [PATCH] small fix to firmware helper Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050824132656.GA71619@active.ath.cx \
--to=amir@boom.org.il \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).