aboutsummaryrefslogtreecommitdiff
path: root/news/nntpcache/files/patch-src_nntpcache.c
blob: ed6cb03c42ab8c31d9d56fee99093213811f8361 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/nntpcache.c.orig	2004-04-11 11:43:56 UTC
+++ src/nntpcache.c
@@ -810,7 +810,7 @@ static bool load_servers(char *file)
 				loge (("missing password in %s:%d: %s", file, n, buf));
 				continue;
 			}
-			if ((hostname = strrchr(password-2, '@')) != NULL) {
+			if ((hostname = strrchr(password, '@')) != NULL) {
 				*(hostname++) = '\0';
 				username = host;
 				list->user = Sstrdup (username);