diff options
Diffstat (limited to 'Documentation/laptops/hpfall.c')
-rw-r--r-- | Documentation/laptops/hpfall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/laptops/hpfall.c b/Documentation/laptops/hpfall.c index a4a8fc5d05d4..b85dbbac0499 100644 --- a/Documentation/laptops/hpfall.c +++ b/Documentation/laptops/hpfall.c | |||
@@ -29,7 +29,7 @@ int set_unload_heads_path(char *device) | |||
29 | return -EINVAL; | 29 | return -EINVAL; |
30 | strncpy(devname, device + 5, sizeof(devname)); | 30 | strncpy(devname, device + 5, sizeof(devname)); |
31 | 31 | ||
32 | snprintf(unload_heads_path, sizeof(unload_heads_path), | 32 | snprintf(unload_heads_path, sizeof(unload_heads_path) - 1, |
33 | "/sys/block/%s/device/unload_heads", devname); | 33 | "/sys/block/%s/device/unload_heads", devname); |
34 | return 0; | 34 | return 0; |
35 | } | 35 | } |