fix some parsing of http_prebuffer_size

git-svn-id: https://svn.musicpd.org/mpd/trunk@3216 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2005-04-17 18:51:03 +00:00
parent e5b23e37f1
commit b1122062de

View File

@ -159,7 +159,7 @@ void inputStream_initHttp() {
if(param) { if(param) {
prebufferSize = strtol(param->value, &test, 10); prebufferSize = strtol(param->value, &test, 10);
if(bufferSize <= 0 || *test != '\0') { if(prebufferSize <= 0 || *test != '\0') {
ERROR("\"%s\" specified for %s at line %i is not a " ERROR("\"%s\" specified for %s at line %i is not a "
"positivie intenger\n", "positivie intenger\n",
param->value, CONF_HTTP_PREBUFFER_SIZE, param->value, CONF_HTTP_PREBUFFER_SIZE,
@ -168,9 +168,9 @@ void inputStream_initHttp() {
} }
prebufferSize *= 1024; prebufferSize *= 1024;
if(prebufferSize > bufferSize) bufferSize = prebufferSize;
} }
if(prebufferSize > bufferSize) prebufferSize = bufferSize;
} }
/* base64 code taken from xmms */ /* base64 code taken from xmms */