beaglebone: replace strcmp with strncmp