[FIX/MOD] Stanza send function, fix some errors

Negociating stanza sizes seems to be real trouble. Also this code is now
`-fanalyzer'-safe!
Also kills the last GNUMakefile present. It wasn't even used...
This commit is contained in:
LDA 2024-10-19 16:58:48 +02:00
commit ff5f085b7f
24 changed files with 114 additions and 152 deletions

View file

@ -445,10 +445,15 @@ main_build(int argc, char *argv[])
if (repo)
{
char *lf = strchr(repo, '\n');
*lf = '\0';
if (lf)
{
*lf = '\0';
}
}
else
{
repo = strdup("N/A");
}
while ((opt = getopt(argc, argv, "sl")) != -1)
{
@ -465,8 +470,9 @@ main_build(int argc, char *argv[])
}
makefile = fopen("Makefile", "w");
fprintf(makefile, "# Autogenerated POSIX Makefile\n");
fprintf(makefile, "# Ideally do not touch.\n\n");
fprintf(makefile, "# Autogenerated POSIX Makefile from Parsee\n");
fprintf(makefile, "# Ideally do not touch, unless you have a very ");
fprintf(makefile, "good reason to do it. \n\n");
fprintf(makefile, ".POSIX: \n");
fprintf(makefile, "include build.conf\n\n");
fprintf(makefile, "AYAYAS=ayaya\n");