%{
-/* $Id: error_table.y,v 1.1.1.1 1995/12/14 06:52:49 tholo Exp $ */
+/* $Id: error_table.y,v 1.2 1996/09/15 23:27:09 millert Exp $ */
/*-
* Copyright 1987, 1988 by the Student Information Processing Board
#ifndef lint
static char const rcsid_error_table_y[] =
- "$Id: error_table.y,v 1.1.1.1 1995/12/14 06:52:49 tholo Exp $";
+ "$Id: error_table.y,v 1.2 1996/09/15 23:27:09 millert Exp $";
#endif
#include "et_lex.lex.c"
}
symbol = (char *)malloc(32 * sizeof(char));
gensym_n++;
- sprintf(symbol, "et%ld", gensym_n);
+ snprintf(symbol, 32 * sizeof(char), "et%ld", gensym_n);
return(symbol);
}
-/* $Id: ext_srvtab.c,v 1.1.1.1 1995/12/14 06:52:41 tholo Exp $ */
+/* $Id: ext_srvtab.c,v 1.2 1996/09/15 23:28:08 millert Exp $ */
/*-
* Copyright 1987, 1988 by the Student Information Processing Board
for (arg = 1; arg < argc; arg++) {
if (argv[arg][0] == '-')
continue;
- sprintf(fname, "%s-new-srvtab", argv[arg]);
+ snprintf(fname, sizeof(fname), "%s-new-srvtab", argv[arg]);
if ((fout = fopen(fname, "w")) == NULL) {
fprintf(stderr, "Couldn't create file '%s'.\n", fname);
fopen_errs++;
-/* $Id: kadmin.c,v 1.2 1995/12/14 08:43:44 tholo Exp $ */
+/* $Id: kadmin.c,v 1.3 1996/09/15 23:30:52 millert Exp $ */
/*
* Copyright (C) 1989 by the Massachusetts Institute of Technology
ss_perror(sci_idx, code, "creating invocation");
exit(1);
}
- (void) sprintf(tktstring, "/tmp/tkt_adm_%d",(int)getpid());
+ (void) snprintf(tktstring, sizeof(tktstring), "/tmp/tkt_adm_%d",
+ (int)getpid());
krb_set_tkt_string(tktstring);
do_init(argc, argv);
return;
/* get the new password */
- (void) sprintf(pw_prompt, "New password for %s:", argv[1]);
+ (void) snprintf(pw_prompt, sizeof(pw_prompt), "New password for %s:",
+ argv[1]);
if (get_password(&new.key_low, &new.key_high,
pw_prompt, SWAP) == GOOD_PW) {
if (get_admin_password() != GOOD_PW)
return;
- (void) sprintf(prompt_pw, "New password for %s.admin:",myname);
+ (void) snprintf(prompt_pw, sizeof(prompt_pw), "New password for %s.admin:",
+ myname);
if (get_password(&low, &high, prompt_pw, DONTSWAP) == GOOD_PW) {
bcopy((char *)&low,(char *) newkey,4);
bcopy((char *)&high, (char *)(((int32_t *) newkey) + 1),4);
get_expdate(&new);
/* get the new password */
- (void) sprintf(pw_prompt, "Password for %s:", argv[1]);
+ (void) snprintf(pw_prompt, sizeof(pw_prompt), "Password for %s:",
+ argv[1]);
if (get_password(&new.key_low, &new.key_high,
pw_prompt, SWAP) == GOOD_PW) {