Changeset 860 for vendor/current/source3/passdb
- Timestamp:
- May 12, 2014, 8:58:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/passdb/pdb_smbpasswd.c
r740 r860 737 737 738 738 char *status; 739 char linebuf[256]; 739 #define LINEBUF_SIZE 255 740 char linebuf[LINEBUF_SIZE + 1]; 740 741 char readbuf[1024]; 741 742 int c; … … 792 793 linebuf[0] = '\0'; 793 794 794 status = fgets(linebuf, sizeof(linebuf), fp);795 status = fgets(linebuf, LINEBUF_SIZE, fp); 795 796 if (status == NULL && ferror(fp)) { 796 797 pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth); … … 1021 1022 #endif 1022 1023 1023 if(wr_len > sizeof(linebuf)) {1024 if(wr_len > LINEBUF_SIZE) { 1024 1025 DEBUG(0, ("mod_smbfilepwd_entry: line to write (%d) is too long.\n", wr_len+1)); 1025 1026 pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
Note:
See TracChangeset
for help on using the changeset viewer.