Bug#222295: gnome-mud alias fail when first char in input box is
a empty space
Jordi Mallach
Jordi Mallach <jordi@debian.org>, 222295@bugs.debian.org
Fri, 12 Dec 2003 13:11:00 +0100
--adJ1OR3c6QgCpb/j
Content-Type: multipart/mixed; boundary="CdrF4e02JqNVZeln"
Content-Disposition: inline
--CdrF4e02JqNVZeln
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
tags 222295 + patch, fixed-upstream
thanks
Hi Sythos,
On Thu, Nov 27, 2003 at 11:55:06AM +0100, Sythos wrote:
> 've setted a lot of alias, example:
> key alias
> sh form shield
> mm form 'magic missile'
> cl form 'create light'
>=20
> if I give in input box
> >mm
> it's work, but if I give this input:
> > mm [empty space before 'mm']
> gnome-mud call FIRST alias
Can you try the following patch?
If you have trouble applying/building gnome-mud from source, I can
provide a binary for you.
Jordi
--=20
Jordi Mallach P=E9rez -- Debian developer http://www.debian.org/
jordi@sindominio.net jordi@debian.org http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/
--CdrF4e02JqNVZeln
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="debian-222295.patch"
Content-Transfer-Encoding: quoted-printable
Index: data.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gnome/gnome-mud/src/data.c,v
retrieving revision 1.19
diff -u -p -u -r1.19 data.c
--- data.c 14 Jul 2003 07:29:03 -0000 1.19
+++ data.c 12 Dec 2003 09:35:41 -0000
@@ -78,11 +78,11 @@ static gchar check_str (gchar *str)
static gint find_data (GList *list, gchar *text)
{
GList *entry;
- gint i =3D 0;
+ gint i =3D 0;
=20
for (entry =3D g_list_first(list); entry !=3D NULL; entry =3D g_list_next=
(entry), i++)
{
- if (!g_ascii_strncasecmp(((gchar **) entry->data)[0], text, strlen(text)=
))
+ if (!g_ascii_strncasecmp(((gchar **) entry->data)[0], text, strlen(((gch=
ar **) entry->data)[0])))
{
return i;
}
--CdrF4e02JqNVZeln--
--adJ1OR3c6QgCpb/j
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/2bBUJYSUupF6Il4RAsTbAKC6TNQ3T7t6UIsxXTZJgvImRJ7W1ACfQZzC
+KuEANhJBKIoQpsQ0jsJm38=
=F/GC
-----END PGP SIGNATURE-----
--adJ1OR3c6QgCpb/j--