Skip to content

Commit

Permalink
more23-423423423
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 17, 2024
1 parent 64f2b46 commit 09c0042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,18 @@ jobs:
envs: 'AUTOCONF_VERSION'
usesh: true
prepare: |
pkg_add bash gmake autoconf-2.71 libtool gmp readline
pkg_add bash gmake autoconf-2.71 libtool gmp
# Do the thing
run: |
set -x
rm -rf extern # ensure we don't build and link against bundled libraries
uname -a
arch
ls -al
pwd
env
./autogen.sh
./configure
./configure --with-gmp=/usr/local --without-readline
gmake -j2 V=1
gmake citests
3 changes: 2 additions & 1 deletion etc/ffgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ void emit_code(FILE * dest, int header)

void emit_code_to_file_by_basename(int header, char * basename)
{
char * filename = malloc(strlen(basename) + 3);
const len = strlen(basename) + 3;
char * filename = malloc(len);
strcpy(filename, basename);
strcat(filename, header ? ".h" : ".c");
FILE * f = fopen(filename, "w");
Expand Down

0 comments on commit 09c0042

Please sign in to comment.