diff --git a/main.c b/main.c index 20e17986..f5cf7273 100644 --- a/main.c +++ b/main.c @@ -2920,7 +2920,7 @@ int pi_sensors(char *buffer) fclose(sensor_read); strcat(buffer, sensor_buffer); - strcpy(buffer, "MPU6050 "); + strcat(buffer, "MPU6050 "); sensor_read = sopen("/home/pi/MPU6050-C-CPP-Library-for-Raspberry-Pi/mpu6050"); // read MPU if present fgets(sensor_buffer, 1000, sensor_read);