Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old May 14, 2012, 12:21 AM   #1
karadoc
AI programmer
 
karadoc's Avatar
 
Join Date: Oct 2005
Location: Australia
Posts: 1,455
xml tag name size

The DLL has access to the following function in the xml interface:
Code:
// returns the tag name of the last located node, returns true if there is/was a last located node and false otherwise
virtual bool GetLastLocatedNodeTagName(FXml* xml, TCHAR* pszTagName) = 0;
I'd like to use this function, but I don't know how I can use it without risking a buffer overflow. Presumably the function will put the tag name inside pszTagName, but how do I know how big that buffer needs to be? Is there some maximum tag size that I can use? Or some other method for working out how big the tag is?
__________________
K-Mod: Far Beyond the Sword
karadoc is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > xml tag name size

Thread Tools

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



Advertisement

All times are GMT -6. The time now is 06:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR