Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-30-2003, 09:05 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

Quote:
Originally Posted by Quagmire
seperator->argplus[0] should be what you're looking for. It stores a pointer to the original string (so be careful to check if that's been de-allocated).
Thanks for pointing that out. In the interem between my post and yours, a msg member has been added to the code that does what I need w/o the subtle danger of memory corruption that you warn of. Since seperators are useful, I could easily see getting into trouble with "Seperator foo("bar");", so I fully support changing them to operate on a local copy of the string. Reviewing the code, though, I see that the argplus array needs to be set to point to the msg member to reflect the change. Also, for some reason the code to free the mem is commented out. Worth looking into.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:01 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3