summaryrefslogtreecommitdiff
path: root/extras/firmware/firmware_helper.c
diff options
context:
space:
mode:
authorAmir Shalem <amir@boom.org.il>2005-08-25 00:39:45 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-25 00:39:45 +0200
commit440103fcfc99626c4705f879b63ad710de0209de (patch)
tree3968516191d5e27a27aae47d19ce364e0fdd9c95 /extras/firmware/firmware_helper.c
parent9ae611be33c29d5d9b51bca281408d407dcf007f (diff)
fix typo in firmware_helper
The wrong string is being nullifed.
Diffstat (limited to 'extras/firmware/firmware_helper.c')
-rw-r--r--extras/firmware/firmware_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/firmware/firmware_helper.c b/extras/firmware/firmware_helper.c
index 283ea9f76f..7b7a307298 100644
--- a/extras/firmware/firmware_helper.c
+++ b/extras/firmware/firmware_helper.c
@@ -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;