diff options
| author | Bas Couwenberg <sebastic@xs4all.nl> | 2016-05-23 21:52:11 +0200 |
|---|---|---|
| committer | Bas Couwenberg <sebastic@xs4all.nl> | 2016-05-23 21:52:11 +0200 |
| commit | 11f973727c3503698bad7c87b1b5ca25102243b8 (patch) | |
| tree | 4858ee199a96fc77f0d867f0462b6cb589511d8e /src | |
| parent | 8b4c079485a68593b810ebfc14848ef6bc7864fa (diff) | |
| download | PROJ-11f973727c3503698bad7c87b1b5ca25102243b8.tar.gz PROJ-11f973727c3503698bad7c87b1b5ca25102243b8.zip | |
Make nad2bin output reproducible.
Init CTABLE.id char[80] variable with zeroes, so that nad2bin output does
not depend on memory state before call, and hence be reproducible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nad2bin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nad2bin.c b/src/nad2bin.c index 6587c638..2bbe2f4c 100644 --- a/src/nad2bin.c +++ b/src/nad2bin.c @@ -98,6 +98,7 @@ int main(int argc, char **argv) { /* Read the ASCII Table */ /* ==================================================================== */ + memset(ct.id,0,MAX_TAB_ID); if ( NULL == fgets(ct.id, MAX_TAB_ID, stdin) ) { perror("fgets"); exit(1); |
