diff --git a/src/x86/x86.c b/src/x86/x86.c index a9d05c339..20592f729 100644 --- a/src/x86/x86.c +++ b/src/x86/x86.c @@ -128,7 +128,7 @@ mraa_x86_platform() if (file_hold != NULL) { if (getline(&line, &len, file_hold) != -1) { - + line[strcspn(line, "\r\n")] = 0; if (strncmp(line, "ROScube-I", strlen("ROScube-I")) == 0 ) { // includes ROScube-I, ROScube-I ET platform_type = MRAA_ADLINK_ROSCUBE_I;