about summary refs log tree commit homepage
path: root/svc_dev.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-01-30 10:18:40 +0000
committerEric Wong <normalperson@yhbt.net>2013-01-31 02:09:08 +0000
commit2e1958b26b926c42f213ba47b71ec735d81448e7 (patch)
tree5b86ba1a09dfb4c8fb9af09ae32ccf17a9e88506 /svc_dev.c
parent45843883077bc0a4ef745d03c3b4241278463f3b (diff)
downloadcmogstored-2e1958b26b926c42f213ba47b71ec735d81448e7.tar.gz
This is better than open-coding a length everywhere.
Diffstat (limited to 'svc_dev.c')
-rw-r--r--svc_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc_dev.c b/svc_dev.c
index 7baa7fb..69dd119 100644
--- a/svc_dev.c
+++ b/svc_dev.c
@@ -155,7 +155,7 @@ static bool write_dev_stats(void *entry, void *file)
 {
         struct mog_dev *dev = entry;
         FILE *fp = file;
-        char util[8];
+        char util[MOG_IOUTIL_LEN];
         char *found = mog_mnt_fetch_util(dev->st_dev, util, sizeof(util));
 
         if (found)