Changeset 8597cf in git


Ignore:
Timestamp:
Apr 28, 1998, 4:26:29 PM (26 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '3720ae8bfcff4a4649ee98a15552089151d2d59b')
Children:
f8875108cc062d2bdd538e7fd17c0d27fc8409a1
Parents:
fd39b4bc41d4f0180e03b38d9a8b48b70ae5ec87
Message:
fixed missing \\0 of text_buffer


git-svn-id: file:///usr/local/Singular/svn/trunk@1524 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/libparse.l

    rfd39b4 r8597cf  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 /* $Id: libparse.l,v 1.13 1998-04-28 09:33:57 pohl Exp $ */
     5/* $Id: libparse.l,v 1.14 1998-04-28 14:26:29 krueger Exp $ */
    66#include <stdio.h>
    77#include <string.h>
     
    627627    int len = (int)(current_pos(0) - string_start);
    628628    fseek(yylpin, string_start, SEEK_SET);
    629     text_buffer = (char *)AllocL(len+1);
    630     text_buffer[len]='\0';
     629    text_buffer = (char *)AllocL(len+2);
    631630    myfread(text_buffer, len, 1, yylpin);
    632631    fseek(yylpin, current_location, SEEK_SET);
     632    text_buffer[len]='\0';
    633633  }
    634634#  endif /* STANDALONE_PARSER */
Note: See TracChangeset for help on using the changeset viewer.