Changeset 383 for trunk/src/sh_login_track.c
- Timestamp:
- Dec 5, 2011, 10:30:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_login_track.c
r299 r383 298 298 while (entry) 299 299 { 300 n = fwrite(&(entry->data), sizeof(struct sh_track_entry_data), 1, fp); 300 fwrite(&(entry->data), sizeof(struct sh_track_entry_data), 301 1, fp); 301 302 entry = entry->next; 302 303 } … … 426 427 } 427 428 428 while ( *p && (*p == ' ' || *p == '\t')) ++p;429 430 if ( *p && (i < SH_LTRACK_USIZE) && (*p == ':'))429 while (p && *p && (*p == ' ' || *p == '\t')) ++p; 430 431 if (p && *p && (i < SH_LTRACK_USIZE) && (*p == ':')) 431 432 { 432 433 user[i] = '\0'; … … 970 971 971 972 urecord = load_data(user); 972 last_login = (urecord->head).last_login;973 974 urecord = load_data(user);975 973 last_login = (urecord->head).last_login; 976 974
Note:
See TracChangeset
for help on using the changeset viewer.