+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#include "common.h"
#include <stdlib.h>
#include <string.h>
memset(pin_names, 0, sizeof(pin_names));
pin_names_width = 0;
- if ((lp = getenv(PSTR(ENV_PINALIAS))) != NULL) {
+/* TODO: enters endless loop on wrong parameters */
+
+ if ((lp = getenv_char(PSTR(ENV_PINALIAS))) != NULL) {
pin_names[namestr] = strdup(lp);
ptr = strtok_P(pin_names[namestr], delim1);
while (ptr != NULL) {