Changeset 1096


Ignore:
Timestamp:
Jan 27, 2004, 10:11:14 PM (22 years ago)
Author:
bird
Message:

Fixed type_tag length issue once and for all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/emxomf/stabshll.c

    • Property cvs2svn:cvs-rev changed from 1.29 to 1.30
    r1095 r1096  
    37193719  if (name != NULL)
    37203720    {
     3721      int cch;
    37213722      sst_start (type);
    37223723      buffer_word (&sst, index);
    3723       if (type == SST_tag2)
     3724      if (type == SST_tag2 || (cch = strlen(name)) > 250)
    37243725        buffer_enc (&sst, name);
    37253726      else
    37263727        {
    37273728          char  achName[256];
    3728           int   cch = strlen(name);
    3729           if (cch > 250)
    3730             {
    3731               warning ("type_tag: name is longer than 250 bytes (%d).", cch);
    3732               cch = 250;
    3733             }
    37343729          memcpy (achName, name, cch);
    37353730          achName[cch] = '\0';
Note: See TracChangeset for help on using the changeset viewer.