From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amir Shalem Date: Wed, 24 Aug 2005 13:26:56 +0000 Subject: [PATCH] small fix to firmware helper Message-Id: <20050824132656.GA71619@active.ath.cx> MIME-Version: 1 Content-Type: multipart/mixed; boundary="i0/AhcQY5QxfSsSZ" List-Id: To: linux-hotplug@vger.kernel.org --i0/AhcQY5QxfSsSZ Content-Type: multipart/mixed; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable small fix to firmware helper, wrong string is being nullifed. --=20 Amir. --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="firmware-null.diff" Content-Transfer-Encoding: quoted-printable diff -Nur udev-068.orig/extras/firmware/firmware_helper.c udev-068/extras/f= irmware/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 @@ } =20 snprintf(data_path, sizeof(data_path), "/sys/%s/data", devpath); - fw_path[sizeof(data_path)-1] =3D '\0'; + data_path[sizeof(data_path)-1] =3D '\0'; fw_fd =3D open(data_path, O_RDWR); if (fw_fd < 0) { rc =3D errno; --NzB8fVQJ5HfG6fxh-- --i0/AhcQY5QxfSsSZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDDHWg6GJjqfuvOIgRAkD+AJ9ceDtDvFfmNxMGjrfjM7jCKYRJKQCeMNfk yNzWRUxnLmJARL2wKC4WI10= =VzC6 -----END PGP SIGNATURE----- --i0/AhcQY5QxfSsSZ-- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel