opnsense-ports/science/gnudatalanguage/files/patch-src__basic_fun.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
907 B
C++

--- src/basic_fun.cpp.orig 2014-10-10 23:18:05.000000000 +0200
+++ src/basic_fun.cpp 2014-10-10 23:21:54.000000000 +0200
@@ -6483,7 +6483,7 @@
while (p < e)
{
// scheme = 1*[ lowalpha | digit | "+" | "-" | "." ]
- if (!(isalpha(*p)) && !(isdigit(*p)) && (*p != '+') && (*p != '.') && (*p != '-'))
+ if (!(std::isalpha(*p)) && !(std::isdigit(*p)) && (*p != '+') && (*p != '.') && (*p != '-'))
{
if (e + 1 < ue) goto parse_port;
else goto just_path;
@@ -6501,7 +6501,7 @@
{
// check if the data we get is a port this allows us to correctly parse things like a.com:80
p = e + 1;
- while (isdigit(*p)) p++;
+ while (std::isdigit(*p)) p++;
if ((*p == '\0' || *p == '/') && (p - e) < 7) goto parse_port;
urlstru->InitTag("SCHEME", DStringGDL(string(s, (e - s))));
length -= ++e - s;