Skip to content

Commit

Permalink
fix: added missing file pointer to fputc() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Jul 25, 2020
1 parent 395181d commit 777c8c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/header.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: header.c,v 2.39 2020/07/24 16:58:16 greg Exp $";
static const char RCSid[] = "$Id: header.c,v 2.40 2020/07/25 01:10:38 greg Exp $";
#endif
/*
* header.c - routines for reading and writing information headers.
Expand Down Expand Up @@ -171,9 +171,9 @@ printargs( /* print arguments to a file */
extern char *fixargv0(char *arg0);
char myav0[128];
/* clean up Windows executable path */
if (ac <= 0) return;
if (ac-- <= 0) return;
fputs(fixargv0(strcpy(myav0, *av++)), fp);
fputc(--ac ? ' ' : '\n');
fputc(ac ? ' ' : '\n', fp);
#endif
while (ac-- > 0) {
fputword(*av++, fp);
Expand Down

0 comments on commit 777c8c1

Please # to comment.