diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-04 16:20:31 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-04 16:20:31 +0000 |
commit | 7cc3a7c2b914043881a1fa2c40dc43d3b6fbe5d5 (patch) | |
tree | 47979cc3ae7d1376e27a2ab561595b0c702fe234 /build_tools | |
parent | 023c9edb1c9a9649154a9c0530eee441f74a3c5b (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@146359 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
0 files changed, 0 insertions, 0 deletions