Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
AhrefsBot

Members: 0
Guests: 35
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Bugfix Lists » SmaugFUSS Bugfix List » [Bug] Freedom Client sometime...
Forum Rules | Mark all | Recent Posts

[Bug] Freedom Client sometimes fails to find socials.
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 4, 2010 5:03 pm   
Go to the top of the page
Go to the bottom of the page

InfiniteAxis
Off the Edge of the Map
GroupAdministrators
Posts1,200
JoinedMar 21, 2006

 
Bug: Freedom Client sometimes fails to find socials.
Danger: Low - Only an issue if you use IMC.
Found by: Kayle
Fixed by: Kayle

---

imc.c, imc_find_social
Find:
   // lower-case the social name before asking the MUD
   static char lcSocName[LGST];
   for (int i = 0; i < LGST && sname[i] != '\0'; i++) {
       lcSocName[i] = tolower(sname[i]);
   }

Replace with:
   // lower-case the social name before asking the MUD
   static char lcSocName[LGST];
   for (int i = 0; i < LGST; i++) {
      if( sname[i] != '\0' )
         lcSocName[i] = tolower(sname[i]);
      else
         lcSocName[i] = '\0';
   }


What happens is if you use a social with a long name like, 'marshmallow', and then try and use one like 'snicker', it's not nulling the end and so you end up with 'snickerllow'. Which, typically isn't a social.

Pages:<< prev 1 next >>