Changeset 862 for trunk/server/source3/passdb/pdb_smbpasswd.c
- Timestamp:
- May 13, 2014, 11:39:04 AM (11 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 860
- Property svn:mergeinfo changed
-
trunk/server/source3/passdb/pdb_smbpasswd.c
r745 r862 743 743 744 744 char *status; 745 char linebuf[256]; 745 #define LINEBUF_SIZE 255 746 char linebuf[LINEBUF_SIZE + 1]; 746 747 char readbuf[1024]; 747 748 int c; … … 798 799 linebuf[0] = '\0'; 799 800 800 status = fgets(linebuf, sizeof(linebuf), fp);801 status = fgets(linebuf, LINEBUF_SIZE, fp); 801 802 if (status == NULL && ferror(fp)) { 802 803 pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth); … … 1027 1028 #endif 1028 1029 1029 if(wr_len > sizeof(linebuf)) {1030 if(wr_len > LINEBUF_SIZE) { 1030 1031 DEBUG(0, ("mod_smbfilepwd_entry: line to write (%d) is too long.\n", wr_len+1)); 1031 1032 pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
Note:
See TracChangeset
for help on using the changeset viewer.