Skip to content
Snippets Groups Projects
Commit 06f4d0ca authored by Luigi Scarso's avatar Luigi Scarso
Browse files

Fixed "warning: strncat specified bound 1 equals source length [-Wstringop-overflow=]" in mpxout.w

parent 6563ebfe
Branches
No related tags found
No related merge requests found
......@@ -540,7 +540,7 @@ static void mpx_copy_mpto (MPX mpx, FILE *outfile, int textype) {
res = strncat(res,mpx->bb, strlen(mpx->bb));
}
if (c == '\0')
res = strncat(res, "\n", 1);
res = strcat(res, "\n");
*s = c;
} while (*(mpx->tt) != 'e');
s = res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment