Changeset 555 in openpam for trunk/t/t_openpam_readword.c
- Timestamp:
- 04/02/12 09:54:09 (14 months ago)
- File:
-
- 1 edited
-
trunk/t/t_openpam_readword.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/t_openpam_readword.c
r552 r555 41 41 #include "t.h" 42 42 43 static char *filename;43 static char filename[1024]; 44 44 static FILE *f; 45 45 … … 403 403 (void)argc; 404 404 (void)argv; 405 asprintf(&filename, "%s.%d.tmp", getprogname(), getpid());405 snprintf(filename, sizeof filename, "%s.%d.tmp", t_progname, getpid()); 406 406 if (filename == NULL) 407 407 err(1, "asprintf()");
Note: See TracChangeset
for help on using the changeset viewer.