stm: Remove unused, useless and not-to-be-used strndup.

Addresses issue #275.