Commit 75e2f4f9 authored by Pino Toscano's avatar Pino Toscano

linux: expand 'arrayDevice' by 1 character more

Other than the device string (which can be up to ARRAYNAMELEN chars),
in 'arrayDevice' there will be the "/dev/" string (5 more chars), and
the null terminator.
parent c2affce6
......@@ -208,7 +208,7 @@ void getMdadmDetail( ArrayInfo* MyArray ) {
ssize_t nbytes;
char sensorName[128];
char arrayDevice[ARRAYNAMELEN + 5];
char arrayDevice[ARRAYNAMELEN + 5 + 1];
char format[ 32 ];
char lineBuf[ 1024 ];
char mdadmStatBuf[ MDADMSTATBUFSIZE ]; /* Buffer for mdadm --detail */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment