$OpenBSD: patch-src_util_cracker_c,v 1.1 2003/11/18 19:07:54 sturm Exp $ --- src/util/cracker.c.orig 1996-12-16 16:19:43.000000000 +0100 +++ src/util/cracker.c 2003-11-18 19:17:14.000000000 +0100 @@ -103,11 +103,11 @@ char key; char *fmt; char *a, *b, *c, *d, *e, *f; { - long t; + time_t t; time(&t); - fprintf(stdout, "%c:%ld:", key, t); + fprintf(stdout, "%c:%d:", key, t); fprintf(stdout, fmt, a, b, c, d, e, f); fflush(stdout); @@ -676,7 +676,7 @@ OpenDictStream(number) static char dictok[] = "/ok/"; static char dictstream[] = "/stream/"; - sprintf(dictcall, "%s %d", kickdict, number); + snprintf(dictcall, sizeof(dictcall), "%s %d", kickdict, number); Logger('I', "OpenDictStream: trying: %s\n", dictcall); @@ -770,7 +770,7 @@ char **guessvec; { char tbuf[8192]; - sprintf(tbuf, "%s %s", nastygram, cg->cg_usernames[i]); + snprintf(tbuf, sizeof(tbuf), "%s %s", nastygram, cg->cg_usernames[i]); system(tbuf); } }