~ubuntu-branches/ubuntu/vivid/ploticus/vivid

« back to all changes in this revision

Viewing changes to src/execline.c

  • Committer: Package Import Robot
  • Author(s): Colin Tuckley
  • Date: 2014-01-08 11:02:15 UTC
  • mfrom: (0.1.5)
  • Revision ID: package-import@ubuntu.com-20140108110215-9y3w9z5ezh4yqgxt
Tags: 2.42-1
* New Upstream release.
* Bump Standards-Version to 3.9.5 (No changes required).
* Upstream Bugfix: Instability with multiline attribute in execline.c
  (LP: #692567)

Show diffs side-by-side

added added

removed removed

Lines of Context:
459
459
/* go until we hit an empty line, or reach end of proc.. */
460
460
for( iline = txtstartline; iline <= procstop ; iline++ ) {
461
461
        line = PLL.procline[ iline ];
 
462
        if( line == NULL ) break;  /* stmt added scg 1/7/2014 ... bug fix, multiline attribute followed immed by #proc (no blank line) causes instability */
462
463
        for( i = 0, emptyline = 1; line[i] != '\0'; i++ ) if( !isspace( (int) line[i] )) { emptyline = 0; break; }
463
464
        if( emptyline ) break;
464
465
        if( mode[0] == 'g' ) txtlen += (strlen( &line[i] ) + 2);  /* mode = "get", accumulate length sans leading ws */