From 0b48542e62bbbcbb7eb70ec435aa455e7535b38d Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Sat, 4 Oct 2008 16:21:51 +0000 Subject: [PATCH] Blocked revisions 146359 via svnmerge ........ r146359 | seanbright | 2008-10-04 12:20:31 -0400 (Sat, 04 Oct 2008) | 10 lines Fix a bug with the last item in CLI history getting duplicated when read from the .asterisk_history file (and subsequently being duplicated when written). We weren't checking the result of fgets() which meant that we read the same line twice before feof() actually returned non- zero. Also, stop writing out an extra blank line between each item in the history file, fix a minor off-by-one error, and use symbolic constants rather than a hardcoded integer. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@146361 65c4cc65-6c06-0410-ace0-fbb531ad65f3