Compare commits

..

No commits in common. "44c60d8bb75098f2d1630d5e92ffc34baaa9e75a" and "d1f41b37c0c1eabc16b1973da5a53b5a816ab5cb" have entirely different histories.

View file

@ -12,9 +12,6 @@ static char *separation_character_line(const char *separation_character, const u
const size_t character_length = strlen(separation_character);
char *line = malloc(line_length * sizeof(char));
// Avoiding undefined behaviour with strlen if no null byte is
// present at the end of line
*line = 0;
while (strlen(line) + character_length <= line_length) {
strncat(line, separation_character, character_length);
@ -40,7 +37,7 @@ int main(int argc, char *argv[]) {
name = "";
}
if (argc >= 3 && *argv[2] != 0) {
if (argc >= 3) {
separation_character = argv[2];
} else {
separation_character = "=";