diff -Naur --exclude Makefile --exclude info wfdb-10.5.17/doc/wpg-src/wpg0.tex wfdb-10.5.18/doc/wpg-src/wpg0.tex --- wfdb-10.5.17/doc/wpg-src/wpg0.tex 2013-01-02 17:51:05.000000000 -0500 +++ wfdb-10.5.18/doc/wpg-src/wpg0.tex 2013-02-22 13:01:40.000000000 -0500 @@ -9051,6 +9051,11 @@ @unnumberedsec WFDB 10.5 +@unnumberedsubsec Changes in version 10.5.18 (22 February 2013) + +Function @code{wfdb_addtopath} now works properly if the path contained +only one component on entry. + @unnumberedsubsec Changes in version 10.5.17 (2 January 2013) The WFDB library internal function @code{wfdb_addtopath()} (in diff -Naur --exclude Makefile --exclude info wfdb-10.5.17/lib/wfdb.h wfdb-10.5.18/lib/wfdb.h --- wfdb-10.5.17/lib/wfdb.h 2013-01-02 18:25:57.000000000 -0500 +++ wfdb-10.5.18/lib/wfdb.h 2013-02-22 13:04:41.000000000 -0500 @@ -32,7 +32,7 @@ /* WFDB library version. */ #define WFDB_MAJOR 10 #define WFDB_MINOR 5 -#define WFDB_RELEASE 17 +#define WFDB_RELEASE 18 #define WFDB_NETFILES 1 /* if 1, library includes code for HTTP, FTP clients */ #define WFDB_NETFILES_LIBCURL 1 diff -Naur --exclude Makefile --exclude info wfdb-10.5.17/lib/wfdbio.c wfdb-10.5.18/lib/wfdbio.c --- wfdb-10.5.17/lib/wfdbio.c 2013-01-02 18:23:01.000000000 -0500 +++ wfdb-10.5.18/lib/wfdbio.c 2013-02-16 17:39:25.000000000 -0500 @@ -1,5 +1,5 @@ /* file: wfdbio.c G. Moody 18 November 1988 - Last revised: 2 January 2013 wfdblib 10.5.17 + Last revised: 16 February 2013 wfdblib 10.5.18 Low-level I/O functions for the WFDB library _______________________________________________________________________________ @@ -677,8 +677,9 @@ /* (Re)link the unlinked node. */ if (strcmp(c0->prefix, ".") == 0) { /* skip initial "." if present */ c1->prev = c0; - c1->next = c0->next; - (c1->next)->prev = c0->next = c1; + if ((c1->next = c0->next) != NULL) + (c1->next)->prev = c1; + c0->next = c1; } else { /* no initial "."; insert the node at the head of the path */ wfdb_path_list = c1; diff -Naur --exclude Makefile --exclude info wfdb-10.5.17/NEWS wfdb-10.5.18/NEWS --- wfdb-10.5.17/NEWS 2013-01-02 18:33:24.000000000 -0500 +++ wfdb-10.5.18/NEWS 2013-02-22 13:17:43.188250517 -0500 @@ -1,3 +1,7 @@ +10.5.18 (16 February 2013): + wfdb_addtopath now works properly if the path contained only one + component on entry. + 10.5.17 (2 January 2013): A small change in the 'configure' script works around a problem in building WFDB applications on recent versions of Debian and