diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-22 06:43:11 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-03-22 18:45:47 +0100 |
| commit | ce3f1cc0ef9f46d70ab5387b1458e9098b40711d (patch) | |
| tree | 4949745670b829f2211381bf14b8440dcc6ca7b1 /src/solvers/coord/gendata.h | |
| parent | 0550a16c1cce868bbc3f3b5ad59f80e35cf2a6cd (diff) | |
| download | nissy-core-ce3f1cc0ef9f46d70ab5387b1458e9098b40711d.tar.gz nissy-core-ce3f1cc0ef9f46d70ab5387b1458e9098b40711d.zip | |
Some safety with move arrays, small refactor appendchar
Diffstat (limited to 'src/solvers/coord/gendata.h')
| -rw-r--r-- | src/solvers/coord/gendata.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solvers/coord/gendata.h b/src/solvers/coord/gendata.h index 93ffc65..5819608 100644 --- a/src/solvers/coord/gendata.h +++ b/src/solvers/coord/gendata.h | |||
| @@ -11,7 +11,7 @@ gendata_coord_dispatch(const char *coordstr, void *buf) | |||
| 11 | { | 11 | { |
| 12 | coord_t *coord; | 12 | coord_t *coord; |
| 13 | 13 | ||
| 14 | parse_coord_and_axis(coordstr, strlen(coordstr), &coord, NULL); | 14 | parse_coord_and_axis(strlen(coordstr), coordstr, &coord, NULL); |
| 15 | 15 | ||
| 16 | if (coord == NULL) { | 16 | if (coord == NULL) { |
| 17 | LOG("Could not parse coordinate '%s'\n", coord); | 17 | LOG("Could not parse coordinate '%s'\n", coord); |
| @@ -137,7 +137,7 @@ getdistribution_coord( | |||
| 137 | 137 | ||
| 138 | memset(distr, 0, INFO_DISTRIBUTION_LEN * sizeof(uint64_t)); | 138 | memset(distr, 0, INFO_DISTRIBUTION_LEN * sizeof(uint64_t)); |
| 139 | 139 | ||
| 140 | if((c = parse_coord(coord, strlen(coord))) == NULL) | 140 | if((c = parse_coord(strlen(coord), coord)) == NULL) |
| 141 | return; | 141 | return; |
| 142 | 142 | ||
| 143 | for (i = 0; i < c->max; i++) { | 143 | for (i = 0; i < c->max; i++) { |
