~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-security

« back to all changes in this revision

Viewing changes to cmd-line-utils/libedit/emacs.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-07-16 13:59:34 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20150716135934-plzpylrt211i3se4
Tags: 5.5.44-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.44 to fix security issues (LP: #1475294)
  - http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
  - CVE-2015-2582
  - CVE-2015-2620
  - CVE-2015-2643
  - CVE-2015-2648
  - CVE-2015-4737
  - CVE-2015-4752
  - CVE-2015-4757

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*      $NetBSD: emacs.c,v 1.25 2011/07/29 15:16:33 christos Exp $      */
2
2
 
3
3
/*-
4
 
 * Copyright (c) 1992, 1993
 
4
 * Copyright (c) 1992, 2015
5
5
 *      The Regents of the University of California.  All rights reserved.
6
6
 *
7
7
 * This code is derived from software contributed to Berkeley by
58
58
                                        /* if I'm at the end */
59
59
                if (el->el_line.cursor == el->el_line.buffer) {
60
60
                                        /* and the beginning */
61
 
                        terminal_writec(el, c); /* then do an EOF */
62
 
                        return CC_EOF;
 
61
                        if(!(terminal_writec(el, c)))   /* then do an EOF */
 
62
                                return CC_EOF;
 
63
                        else
 
64
                                return CC_ERROR;
63
65
                } else {
64
66
                        /*
65
67
                         * Here we could list completions, but it is an