std::string --> char array where meaningful #8

Open
opened 2022-01-07 05:44:48 +01:00 by wanderer · 0 comments
Owner

since strings are \0-terminated, this makes for an ugly issue down the road unless it's fixed very soon (std::string has been overused).

examples/candidates:
d4c7c61ac4/generator.cpp (L49-L50)
d4c7c61ac4/generator.cpp (L57-L58)
d4c7c61ac4/generator.cpp (L135)
d4c7c61ac4/util.h (L16-L30)
d4c7c61ac4/generator.cpp (L127)

since strings are `\0`-terminated, this makes for an ugly issue down the road unless it's fixed very soon (`std::string` has been overused). examples/candidates: https://git.dotya.ml/ak-fortuna/fortuna/src/commit/d4c7c61ac47baa7c5dd73029f4692c5c4e7afc50/generator.cpp#L49-L50 https://git.dotya.ml/ak-fortuna/fortuna/src/commit/d4c7c61ac47baa7c5dd73029f4692c5c4e7afc50/generator.cpp#L57-L58 https://git.dotya.ml/ak-fortuna/fortuna/src/commit/d4c7c61ac47baa7c5dd73029f4692c5c4e7afc50/generator.cpp#L135 https://git.dotya.ml/ak-fortuna/fortuna/src/commit/d4c7c61ac47baa7c5dd73029f4692c5c4e7afc50/util.h#L16-L30 https://git.dotya.ml/ak-fortuna/fortuna/src/commit/d4c7c61ac47baa7c5dd73029f4692c5c4e7afc50/generator.cpp#L127
wanderer added the
bug
label 2022-01-07 05:44:48 +01:00
wanderer self-assigned this 2022-01-07 05:44:48 +01:00
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ak-fortuna/fortuna#8
No description provided.