Skip to content

Commit 3f57842

Browse files
committed
Release v2.16.0.2
The following are the changes in this release: Fixed bug, when custom functions were enabled, where returning a value from the sysinfo custom function such as: custom("sysinfo","DEFAULTSHELL") would cause a segmentation violation due to an improper `free(3)`. Fixed a memory leak that was related to the sysinfo custom function. Added paranoia checks on shell value when processing commands read from the tty that start with the "!" character. Improved code that converts between UPPER CASE and lower case. Verify that the default underlying shell defaults to the shell as given by the `$SHELL` environment variable if that environment variable is set and is NOT empty, otherwise the `DEFAULTSHELL` (as defined in `calc.h`) value will be used as the underlying shell. Fixed memory leaks related to various environment variable values used by calc code. All various environment variable values used used by calc code are processed by `strdup(3)`. The `libcalc_call_me_last()` function frees any non-NULL values set by `initenv()`. If the readline tilde_expand fails to expand "~/.calc_history", then ".calc_history" will be used as the name of the history file. Added HIST_NULL_HIST code to indicate that name of the history file could not be set.
1 parent fffe6e4 commit 3f57842

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ EXT=
12451245

12461246
# The calc version in the form of x.y.z.w
12471247
#
1248-
VERSION= 2.16.0.1
1248+
VERSION= 2.16.0.2
12491249

12501250
# The calc major version in the form of x.y.z
12511251
#

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#define MAJOR_VER 2 /* level 1: major library version */
6565
#define MINOR_VER 16 /* level 2: minor library version */
6666
#define MAJOR_PATCH 0 /* level 3: major software version level */
67-
#define MINOR_PATCH 1 /* level 4: minor software version level */
67+
#define MINOR_PATCH 2 /* level 4: minor software version level */
6868

6969
/*
7070
* Defining PERMIT_DANGEROUS_ADDRESS_ARITHMETIC is NOT supported!

0 commit comments

Comments
 (0)