diff options
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c index ae7ae02..e526115 100644 --- a/src/utils.c +++ b/src/utils.c @@ -76,7 +76,7 @@ int readCfg(struct structCfg *dataCfg, const char *pathExe) { rewind(fileCfg); do { fgets(strBuffer, BUFSIZ, fileCfg); - tmpPtr = strtok(strBuffer, " =\n\t\r\""); + tmpPtr = strtok(strBuffer, " =\n\t\r"); if (tmpPtr == NULL) continue; if (strcmp("path_to_serial_port", tmpPtr) != 0) @@ -100,7 +100,7 @@ int readCfg(struct structCfg *dataCfg, const char *pathExe) { rewind(fileCfg); do { fgets(strBuffer, BUFSIZ, fileCfg); - tmpPtr = strtok(strBuffer, " =\n\t\r\""); + tmpPtr = strtok(strBuffer, " =\n\t\r"); if (tmpPtr == NULL) continue; if (strcmp("path_to_gpio_chip", tmpPtr) != 0) @@ -124,7 +124,7 @@ int readCfg(struct structCfg *dataCfg, const char *pathExe) { rewind(fileCfg); do { fgets(strBuffer, BUFSIZ, fileCfg); - tmpPtr = strtok(strBuffer, " =\n\t\r\""); + tmpPtr = strtok(strBuffer, " =\n\t\r"); if (tmpPtr == NULL) continue; if (strcmp("pin_pwr_key", tmpPtr) != 0) @@ -151,7 +151,7 @@ int readCfg(struct structCfg *dataCfg, const char *pathExe) { rewind(fileCfg); do { fgets(strBuffer, BUFSIZ, fileCfg); - tmpPtr = strtok(strBuffer, " =\n\t\r\""); + tmpPtr = strtok(strBuffer, " =\n\t\r"); if (tmpPtr == NULL) continue; if (strcmp("pin_status", tmpPtr) != 0) |
