diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 56983c9d0..a66f53e8c 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -913,7 +913,7 @@ std::string getJFFS2MountPoint(int mtdPos) char lineRead[1024], sMount[512], sFs[512]; memset(lineRead, '\0', sizeof(lineRead)); while (fgets(lineRead, sizeof(lineRead)-1, fd)) { - sscanf(lineRead, "/dev/mtdblock%d %512s %512s", &iBlock, sMount, sFs); + sscanf(lineRead, "/dev/mtdblock%d %511s %511s", &iBlock, sMount, sFs); if ((iBlock == mtdPos) && (strstr(sMount, "/") != NULL) && (strstr(sFs, "jffs2") != NULL)) { fclose(fd); return sMount;