Skip to contentSkip to conversation

small fix to firmware helper

PATCH In review Amir Shalem 2 participants 2 messages Aug 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 small fix to firmware helper

small fix to firmware helper,
wrong string is being nullifed.

Signature · 1 line
	Amir.
extras/firmware/firmware_helper.c +1 -1
diff -Nur udev-068.orig/extras/firmware/firmware_helper.c udev-068/extras/firmware/firmware_helper.c
@@ -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;
#1 lore raw
Quoted 2 lines · Amir Shalem

small fix to firmware helper,
wrong string is being nullifed.

Thanks a lot. I've applied it.

Kay

-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel