fixed the '-e' command line option for minmemfree. updated doc/asterisk-conf.tex

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Dwayne M. Hubbard
2007-04-11 22:10:26 +00:00
parent 2151e532fe
commit 9fc6cf1ac3
2 changed files with 4 additions and 1 deletions

View File

@@ -2607,7 +2607,7 @@ int main(int argc, char *argv[])
switch (c) {
#if defined(HAVE_SYSINFO)
case 'e':
if ((sscanf(optarg, "%ld", &option_minmemfree) != 1) || (option_minmemfree < 0)) {
if ((sscanf(&optarg[1], "%ld", &option_minmemfree) != 1) || (option_minmemfree < 0)) {
option_minmemfree = 0;
}
break;