-rw-r--r-- | lib/util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.cc b/lib/util.cc index 83f0eef..4600576 100644 --- a/lib/util.cc +++ b/lib/util.cc | |||
@@ -221,9 +221,9 @@ namespace opkele { | |||
221 | char *eptr = 0; | 221 | char *eptr = 0; |
222 | long port = strtol(nptr,&eptr,10); | 222 | long port = strtol(nptr,&eptr,10); |
223 | if( (port>0) && (port<65535) && port!=(s?443:80) ) { | 223 | if( (port>0) && (port<65535) && port!=(s?443:80) ) { |
224 | char tmp[6]; | 224 | char tmp[8]; |
225 | snprintf(tmp,sizeof(tmp),"%ld",port); | 225 | snprintf(tmp,sizeof(tmp),":%ld",port); |
226 | rv += ':'; rv += tmp; | 226 | rv += tmp; |
227 | } | 227 | } |
228 | if(ni==string::npos) { | 228 | if(ni==string::npos) { |
229 | rv += '/'; return rv; | 229 | rv += '/'; return rv; |