f0dda7d927
Bump PKGREVISION.
17 lines
575 B
Text
17 lines
575 B
Text
$NetBSD: patch-bj,v 1.1 2003/07/28 16:03:21 wiz Exp $
|
|
|
|
--- src/topten.c.orig Sun Jun 24 18:57:18 2001
|
|
+++ src/topten.c
|
|
@@ -855,6 +855,12 @@ char **argv;
|
|
else {
|
|
if (playerct > 1) Strcat(pbuf, "any of ");
|
|
for (i = 0; i < playerct; i++) {
|
|
+ /* stop printing players if there are too many to fit */
|
|
+ if (strlen(pbuf) + strlen(players[i]) + 2 >= BUFSZ) {
|
|
+ if (strlen(pbuf) < BUFSZ-4) Strcat(pbuf, "...");
|
|
+ else Strcpy(pbuf+strlen(pbuf)-4, "...");
|
|
+ break;
|
|
+ }
|
|
Strcat(pbuf, players[i]);
|
|
if (i < playerct-1) Strcat(pbuf, ":");
|
|
}
|