瀏覽代碼

Additional notes on broken user records.

root 4 年之前
父節點
當前提交
58b15cbe59
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      hharry.cpp

+ 2 - 2
hharry.cpp

@@ -147,13 +147,13 @@ int locate_user(const char *alias) {
   // Carry on!
   while (fread(buffer, 0x600, 1, user) == 1) {
     pcopy(buffer + 0x6d, temp);
-    // ZF_LOGE("Is [%s] == [%s] ?", temp, alias);
     if (strcasecmp(temp, username.c_str()) == 0) {
       pcopy(buffer + 0x8c, temp);
+      // Assuming the user record isn't screwed up with len=0.
       fullname.assign(temp);
       fclose(user);
       return 1;
-      break;
+      // break;
     }
     /*
     printf("Alias: %s\n", temp);