diff options
author | Christian Hesse <mail@eworm.de> | 2013-05-30 21:07:26 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-05-30 21:07:26 +0200 |
commit | 70f2ae0d2a2d215e8d4387c3063f4985569e05c9 (patch) | |
tree | 30c5d04a7d76aa109ad69a76ede41a6be432881f | |
parent | 9f32b22f154f8757e200159eaf2b7cbb76284a73 (diff) | |
download | cqrlogo-70f2ae0d2a2d215e8d4387c3063f4985569e05c9.tar.gz cqrlogo-70f2ae0d2a2d215e8d4387c3063f4985569e05c9.tar.zst |
match https as well
-rw-r--r-- | cqrlogo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |