Ignore:
Timestamp:
May 13, 2014, 11:39:04 AM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update trunk to 3.6.23

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/passdb/pdb_smbpasswd.c

    r745 r862  
    743743
    744744        char *status;
    745         char linebuf[256];
     745#define LINEBUF_SIZE 255
     746        char linebuf[LINEBUF_SIZE + 1];
    746747        char readbuf[1024];
    747748        int c;
     
    798799                linebuf[0] = '\0';
    799800
    800                 status = fgets(linebuf, sizeof(linebuf), fp);
     801                status = fgets(linebuf, LINEBUF_SIZE, fp);
    801802                if (status == NULL && ferror(fp)) {
    802803                        pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth);
     
    10271028#endif
    10281029
    1029         if(wr_len > sizeof(linebuf)) {
     1030        if(wr_len > LINEBUF_SIZE) {
    10301031                DEBUG(0, ("mod_smbfilepwd_entry: line to write (%d) is too long.\n", wr_len+1));
    10311032                pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
Note: See TracChangeset for help on using the changeset viewer.