Changeset 6ed924 in git for Singular/fehelp.cc


Ignore:
Timestamp:
May 6, 2005, 12:08:43 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
edfd36b5c71dcd3e71c28a77cd8208d2605ba5d4
Parents:
55ebf3c16ccdb234df559a4a5e59aefc2979bce9
Message:
*hannes: fixed help *x*


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

Legend:

Unmodified
Added
Removed
  • Singular/fehelp.cc

    r55ebf3 r6ed924  
    44/*
    55* ABSTRACT: help system
    6 * versin $Id: fehelp.cc,v 1.42 2005-05-03 14:30:09 Singular Exp $
     6* versin $Id: fehelp.cc,v 1.43 2005-05-06 10:08:43 Singular Exp $
    77*/
    88
     
    610610  while (fscanf(fd, "%[^\t]\t%*[^\n]\n", index_key) == 1)
    611611  {
    612     if (index_key[MAX_HE_ENTRY_LENGTH]!='\0')
    613     {
    614       index_key[MAX_HE_ENTRY_LENGTH]='\0';
     612    if ((index_key[MAX_HE_ENTRY_LENGTH-1]!='\0'))
     613    {
     614      index_key[MAX_HE_ENTRY_LENGTH-1]='\0';
    615615      Werror("index file corrupt at line >>%s<<",index_key);
    616616      break;
Note: See TracChangeset for help on using the changeset viewer.