diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-06-03 22:03:31 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-06-03 22:03:31 +0000 |
commit | 9a1f2c86fd80c9cd8b06b11408195371e43c588b (patch) | |
tree | 19545b32dbc91653eeaee7f6e45b40fddd7970e2 /sysutils/conky/files/patch-src_diskio.c | |
parent | CLAW is a C++ Library Absolutely Wonderful providing useful classes (diff) |
- Update to 1.5.1
Submitted by: adamw
Approved by: maintainer (novel)
Notes
Notes:
svn path=/head/; revision=214275
Diffstat (limited to 'sysutils/conky/files/patch-src_diskio.c')
-rw-r--r-- | sysutils/conky/files/patch-src_diskio.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sysutils/conky/files/patch-src_diskio.c b/sysutils/conky/files/patch-src_diskio.c new file mode 100644 index 000000000000..77c79f66ac3e --- /dev/null +++ b/sysutils/conky/files/patch-src_diskio.c @@ -0,0 +1,17 @@ +--- src/diskio.c.orig 2008-05-26 11:36:44.000000000 -0400 ++++ src/diskio.c 2008-05-26 11:43:00.000000000 -0400 +@@ -73,11 +73,11 @@ struct diskio_stat *prepare_diskio_stat( + free(new->dev); + new->dev = 0; + } +- if (strncmp(s, "/dev/", 5) == 0) { ++ if (strncmp(s, "/dev/", 5) == 0 && strlen(s) > 5) { + // supplied a /dev/device arg, so cut off the /dev part +- new->dev = strndup(s + 5, text_buffer_size); ++ new->dev = strdup(s + 5); + } else { +- new->dev = strndup(s, text_buffer_size); ++ new->dev = strdup(s); + } + /* + * check that device actually exists |