1 diff -Naurd build-tree.orig/apache_1.3.34/src/support/htdigest.c build-tree/apache_1.3.34/src/support/htdigest.c
2 --- build-tree.orig/apache_1.3.34/src/support/htdigest.c 2004-05-15 08:34:22.000000000 +0200
3 +++ build-tree/apache_1.3.34/src/support/htdigest.c 2004-05-15 08:35:14.000000000 +0200
5 fprintf(f, "%s:%s:", user, realm);
8 - sprintf(string, "%s:%s:%s", user, realm, pw);
9 + memset(string, '\0',sizeof(string));
10 + snprintf(string, sizeof(string)-1, "%s:%s:%s", user, realm, pw);
13 ap_MD5Update(&context, (unsigned char *) string, strlen(string));
19 + memset(command,'\0', sizeof(command));
21 #if defined(OS2) || defined(WIN32)
22 - sprintf(command, "copy \"%s\" \"%s\"", tn, argv[1]);
23 + snprintf(command, sizeof(command)-1, "copy \"%s\" \"%s\"", tn, argv[1]);
25 - sprintf(command, "cp %s %s", tn, argv[1]);
26 + snprintf(command, sizeof(command)-1, "cp %s %s", tn, argv[1]);