diff -u -Nur --exclude CVS apache_1.3.9/src/support/htdigest.c apache_1.3.9/src/support/htdigest.c
--- apache_1.3.9/src/support/htdigest.c	2002-11-05 10:57:50.000000000 +0100
+++ apache_1.3.9/src/support/htdigest.c	2002-11-05 11:08:23.000000000 +0100
@@ -237,8 +237,8 @@
 	fprintf(stderr, "Use -c option to create new one.\n");
 	exit(1);
     }
-    strcpy(user, argv[3]);
-    strcpy(realm, argv[2]);
+    strncpy(user, argv[3], sizeof (user));
+    strncpy(realm, argv[2], sizeof (realm));
 
     found = 0;
     while (!(getline(line, MAX_STRING_LEN, f))) {
