fix buffer size in open_i2c_sensor (get_first_file_in_a_directory expects a 256 char...
authorJohannes Winkelmann <jw@tks6.net>
Sat, 15 Oct 2005 16:20:25 +0000 (16:20 +0000)
committerJohannes Winkelmann <jw@tks6.net>
Sat, 15 Oct 2005 16:20:25 +0000 (16:20 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@346 7f574dfc-610e-0410-a909-a81674777703

src/linux.c

index e8a265f..87b09c9 100644 (file)
@@ -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;