Fix snprintf call - size should include null byte