diff options
-rw-r--r-- | drivers/ieee1394/nodemgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index c4d3d4131f01..51a12062ed36 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c | |||
@@ -283,7 +283,7 @@ static ssize_t fw_show_##class##_##td_kv (struct device *dev, struct device_attr | |||
283 | memcpy(buf, \ | 283 | memcpy(buf, \ |
284 | CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA(class->td_kv), \ | 284 | CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA(class->td_kv), \ |
285 | len); \ | 285 | len); \ |
286 | while ((buf + len - 1) == '\0') \ | 286 | while (buf[len - 1] == '\0') \ |
287 | len--; \ | 287 | len--; \ |
288 | buf[len++] = '\n'; \ | 288 | buf[len++] = '\n'; \ |
289 | buf[len] = '\0'; \ | 289 | buf[len] = '\0'; \ |