--- guage.c.orig Mon Nov 8 14:08:43 1999 +++ guage.c Mon Nov 8 14:36:22 1999 @@ -86,16 +86,16 @@ if (feof (stdin)) break; - gets (buf); + fgets (buf, sizeof(buf), stdin); if (buf[0] == 'X') { /* Next line is percentage */ - gets (buf); + fgets (buf, sizeof(buf), stdin); percent = atoi (buf); /* Rest is message text */ prompt_buf[0] = '\0'; - while (strncmp (gets (buf), "XXX", 3)) - strcat (prompt_buf, buf); + while (strncmp (fgets (buf, sizeof(buf), stdin), "XXX", 3)) + strlcat (prompt_buf, buf, sizeof(prompt_buf)); prompt = prompt_buf; } else percent = atoi (buf);