summaryrefslogtreecommitdiff
blob: fc1eaf7679ac481fcbe3296e34dcb752932206d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Socket.cc
+++ Socket.cc
@@ -344,7 +344,7 @@
 
   const char *srv = 0, *lasth = 0;
 
-  if (char *u=strchr(s, '@')) {
+  if (const char *u=strchr(s, '@')) {
     printf("We have a username part.\n");
     username = std::string(s, u-s);
     has_username = true;