chiark / gitweb /
fix typo in firmware_helper
authorAmir Shalem <amir@boom.org.il>
Wed, 24 Aug 2005 22:39:45 +0000 (00:39 +0200)
committerKay Sievers <kay.sievers@suse.de>
Wed, 24 Aug 2005 22:39:45 +0000 (00:39 +0200)
The wrong string is being nullifed.

extras/firmware/firmware_helper.c

index 283ea9f..7b7a307 100644 (file)
@@ -109,7 +109,7 @@ int main(int argc, char **argv) {
        }
 
        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;