From 70f2ae0d2a2d215e8d4387c3063f4985569e05c9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 30 May 2013 21:07:26 +0200 Subject: match https as well --- cqrlogo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cqrlogo.c b/cqrlogo.c index dd78211..2a14e37 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -75,8 +75,8 @@ int main(int argc, char **argv) { } /* prepare pattern matching */ - pattern = malloc(22 + strlen(server_name)); - sprintf(pattern, "^[hH][tT][tT][pP]://%s/", server_name); + pattern = malloc(28 + strlen(server_name)); + sprintf(pattern, "^[hH][tT][tT][pP][sS]\\?://%s/", server_name); if ((rc = regcomp(&preg, pattern, 0)) != 0) fprintf(stderr, "regcomp() failed, returning nonzero (%d)\n", rc); -- cgit v1.2.3-70-g09d2