Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2011, 04:32 PM
erde
Sarnak
 
Join Date: Sep 2006
Location: Germany
Posts: 82
Default COMMITTED: *BSD compile fix

strnlen isn't available on the *BSDs (FreeBSD/NetBSD/Mac OS X)

Code:
--- a/zone/client_packet.cpp    Mon Jul 11 20:18:35 2011 +0200
+++ b/zone/client_packet.cpp    Mon Jul 11 22:31:45 2011 +0200
@@ -11773,7 +11773,11 @@
        
        char *GuildName = (char *)app->pBuffer;
 
+#ifdef FREEBSD
+       if(strlen(GuildName) > 60)
+#else
        if(strnlen(GuildName, 64) > 60)
+#endif
        {
                Message(clientMessageError, "Guild name too long.");
                return;
__________________
"Yes, the artwork is awful. I am an engineer, not an artist " - David H. Eberly
Reply With Quote
  #2  
Old 07-11-2011, 05:02 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Thanks. Should be fixed in Rev 1965
Reply With Quote
Reply


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 09:33 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3