X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_headers_api.c;h=63c46abad58a8d23f2a9004ee568e9f7227062cd;hp=8a4ecc5591f8d9a9ee8c2b4e918a755c56facd4d;hb=ffc893b125c6cc9b385a68a357b08ba2cc4e91f6;hpb=c16b8f2e6a9ada7d9496b43ba3c1b3cf119e6708 diff --git a/http_headers_api.c b/http_headers_api.c index 8a4ecc5..63c46ab 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -154,7 +154,7 @@ PHP_HTTP_API HashTable *_http_negotiate_q(const char *header, HashTable *support while (*++ptr && !isdigit(*ptr)); - quality = strtod(ptr, NULL); + quality = atof(ptr); identifier = estrndup(Z_STRVAL_PP(entry), separator - Z_STRVAL_PP(entry)); } else { quality = 1000.0 - i++;