~ubuntu-branches/ubuntu/saucy/sudo/saucy

« back to all changes in this revision

Viewing changes to common/lbuf.c

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-11-16 09:31:32 UTC
  • mfrom: (1.4.13)
  • Revision ID: package-import@ubuntu.com-20121116093132-ptext55adlzbrq6y
Tags: 1.8.6p3-0ubuntu1
* New upstream release (1.8.6p3).
* Add patch to fix building with sssd when ldap is disabled.
* Drop sudo.manpages and sudo-ldap.manpages as the upstream build system
  now does the right thing here.
* Build the main sudo package with support for sssd, this doesn't add any
  additional build time or runtime dependency. sudo will dynamically load
  the sssd library if 'sss' is listed for the 'sudoers' nss service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
    /* For very small widths just give up... */
248
248
    len = lbuf->continuation ? strlen(lbuf->continuation) : 0;
249
249
    if (lbuf->cols <= lbuf->indent + len + 20) {
250
 
        lbuf->buf[lbuf->len] = '\0';
251
 
        lbuf->output(lbuf->buf);
 
250
        if (lbuf->len > 0) {
 
251
            lbuf->buf[lbuf->len] = '\0';
 
252
            lbuf->output(lbuf->buf);
 
253
            if (lbuf->buf[lbuf->len - 1] != '\n')
 
254
                lbuf->output("\n");
 
255
        }
252
256
        goto done;
253
257
    }
254
258