Index: gripjoy.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/dos/gripjoy.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- gripjoy.c 6 Nov 2001 17:16:39 -0000 1.9
+++ gripjoy.c 2 Jul 2004 16:25:41 -0000 1.10
@@ -288,7 +288,7 @@
stick_class[i][stick] = GRIP_CLASS_AXIS;
/* name stick... :( */
- strcpy(tmpstr, "Stick");
+ _al_sane_strncpy(tmpstr, "Stick", 1287);
if (joy[i].num_sticks > 1) {
tmpstr[strlen(tmpstr)+2] = '\0';
tmpstr[strlen(tmpstr)+1] = '1'+stick;
-static int get_ini_config_entry(char *entry, char *dest, FILE *fp)
+static int get_ini_config_entry(char *entry, char *dest, unsigned int dest_size, FILE *fp)
{
char str[83];
char tokstr[33];
char *p;
/* make a local copy of the entry, upper-case it */
- strcpy(tokstr, entry);
+ _al_sane_strncpy(tokstr, entry, 33);