Browse Source

Additional notes on broken user records.

root 4 years ago
parent
commit
58b15cbe59
1 changed files with 2 additions and 2 deletions
  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);