Skip to content

Commit 4ba1aab

Browse files
committed
STY: Two more file-path variables using NAMELEN.
grep -E -e '\[[[:digit:]]{2,}\]' *.[CcHhFf]*
1 parent c116e16 commit 4ba1aab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gen_irr_diag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ int AppendReg( char *chem_opt, int ndx )
4242
char *strt, *end;
4343
char *token;
4444
char *wstrg1;
45-
char path[256 * 2 + 25];
46-
char fname[256];
45+
char path[2 * (NAMELEN + EXTRA_FOR_DEST_BUFFER)];
46+
char fname[NAMELEN];
4747
char inln[1024],winln[1024],s[1024];
4848
char rxtstr[TABLE_ENTRY];
4949
char rxtstr_tbl[1000][TABLE_ENTRY];

0 commit comments

Comments
 (0)