Raised This Month: $ Target: $400
 0% 

[RESOLVED] sprintf problem ....


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 06-01-2010 , 20:53   Re: sprintf problem ....
Reply With Quote #2

I'd suggest doing some introductory c++ work before jumping into writing a server plugin.

char *msg is only creating a pointer to a string, not a buffer to hold an actual string. And then as a bonus, it's uninitialized.

Like a handle without a cup. And you're now pouring coffee on the floor.
pRED* is offline
 


Thread Tools
Display Modes

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 07:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode