Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/passdb/pdb_smbpasswd.c

    r740 r860  
    737737
    738738        char *status;
    739         char linebuf[256];
     739#define LINEBUF_SIZE 255
     740        char linebuf[LINEBUF_SIZE + 1];
    740741        char readbuf[1024];
    741742        int c;
     
    792793                linebuf[0] = '\0';
    793794
    794                 status = fgets(linebuf, sizeof(linebuf), fp);
     795                status = fgets(linebuf, LINEBUF_SIZE, fp);
    795796                if (status == NULL && ferror(fp)) {
    796797                        pw_file_unlock(lockfd, &smbpasswd_state->pw_file_lock_depth);
     
    10211022#endif
    10221023
    1023         if(wr_len > sizeof(linebuf)) {
     1024        if(wr_len > LINEBUF_SIZE) {
    10241025                DEBUG(0, ("mod_smbfilepwd_entry: line to write (%d) is too long.\n", wr_len+1));
    10251026                pw_file_unlock(lockfd,&smbpasswd_state->pw_file_lock_depth);
Note: See TracChangeset for help on using the changeset viewer.