Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5072 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Aug 19, 2005, 12:59:46 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: started function implementation for Shell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine.cc

    r4857 r5072  
    9595  if (this->text)
    9696    delete []this->text;
    97   this->text = new char[strlen(text)+1];
    98   strcpy(this->text, text);
     97  if (text != NULL)
     98  {
     99    this->text = new char[strlen(text)+1];
     100    strcpy(this->text, text);
     101  }
     102  else
     103  {
     104    this->text = new char[1];
     105    strcpy(this->text, "");
     106  }
    99107
    100108
Note: See TracChangeset for help on using the changeset viewer.