mirror of https://github.com/asterisk/asterisk
........ 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-fbb531ad65f31.6.1
parent
97331b1830
commit
0b48542e62