From ce4572300e4ccb71da9c79cf9e24fe3c63c983f9 Mon Sep 17 00:00:00 2001 From: Johannes Winkelmann Date: Sat, 15 Oct 2005 16:20:25 +0000 Subject: [PATCH] fix buffer size in open_i2c_sensor (get_first_file_in_a_directory expects a 256 char buffer) git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@346 7f574dfc-610e-0410-a909-a81674777703 --- src/linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux.c b/src/linux.c index e8a265f4..87b09c9f 100644 --- a/src/linux.c +++ b/src/linux.c @@ -563,7 +563,7 @@ open_i2c_sensor(const char *dev, const char *type, int n, int *div, char *devtype) { char path[256]; - char buf[64]; + char buf[256]; int fd; int divfd;