$OpenBSD: patch-libgputils_gpsystem_c,v 1.2 2004/01/30 01:01:11 naddy Exp $ --- libgputils/gpsystem.c.orig 2004-01-17 13:33:51.000000000 +1100 +++ libgputils/gpsystem.c 2004-01-25 20:36:32.000000000 +1100 @@ -168,14 +168,14 @@ gp_putb32(char *addr, long data) } void -gp_date_string(char *buffer) +gp_date_string(char *buffer, size_t sizeof_buffer) { time_t now; struct tm *now_tm; time(&now); now_tm = localtime(&now); - sprintf(buffer, + snprintf(buffer, sizeof_buffer, "%d-%d-%d %02d:%02d:%02d", now_tm->tm_mon + 1, now_tm->tm_mday,