Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While defines.h is included at lesskey.h, and it does define HAVE_SNPRINTF, till now it was ignored while building lesskey, which resulted in snprintf being used even when HAVE_SNPRINTF is 0. Now we have the SNPRINTF<N> macros, copied from less.h, and used instead of snprintf in lesskey source files. Note that lesstest also ignores HAVE_SNPRINTF, but it's not mandatory so currently not handled. TODO: maybe add lesscommon.h with unified handling of snprintf.
- Loading branch information