chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ae611b
)
fix typo in firmware_helper
author
Amir Shalem
<amir@boom.org.il>
Wed, 24 Aug 2005 22:39:45 +0000
(
00:39
+0200)
committer
Kay 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
patch
|
blob
|
history
diff --git
a/extras/firmware/firmware_helper.c
b/extras/firmware/firmware_helper.c
index 283ea9f76fc2bfb3562a74740dea56a73fead91b..7b7a307298384ccdb16e8d10f48cb404d7dae482 100644
(file)
--- 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;