Fix of terminate problem while loading user list
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 17 Apr 2011 21:21:41 +0000 (21:21 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 17 Apr 2011 21:32:29 +0000 (21:32 +0000)
webcit/useredit.c

index a95670a8024da8946eddcdae3a167a26c176be67..0bfc7ff37aee24f4cee429df3c2e82a050fdba4a 100644 (file)
@@ -274,7 +274,7 @@ HashList *iterate_load_userlist(StrBuf *Target, WCTemplputParams *TP)
                        len = StrBuf_ServGetln(Buf);
                        if ((len <0) || 
                            ((len == 3) &&
-                            strcmp(ChrPtr(Buf), "000")))
+                            !strcmp(ChrPtr(Buf), "000")))
                        {
                                Done = 1;
                                break;