My dostats.ec utility
Posted in 1997
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
To those to whom I have sent dostats.ec before this week: There is a trivial bug that MAY cause the utility to coredump when executing the -V option (print version info). <He looks truly abashed> I passed a #define representing a literal string to strtok() in the switch statement case processing the -V option. There should be a local or static string into which this literal is strcpy()d and that copy passed to strtok(). Walt Hultgren has uploaded a shell archive containing the repaired dostats.ec and several other utilities of mine onto the repository as utils_ak.Z. Sorry to all, this really bad code snippet did not cause any trouble until I recompiled with ESQL/C 7.21 on Monday and so went unnoticed. Art S. Kagel