Changeset 555 in openpam for trunk/t/t_openpam_readword.c


Ignore:
Timestamp:
Apr 2, 2012, 9:54:09 AM (3 years ago)
Author:
des
Message:

Get rid of BSDisms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/t_openpam_readword.c

    r552 r555  
    4141#include "t.h" 
    4242 
    43 static char *filename; 
     43static char filename[1024]; 
    4444static FILE *f; 
    4545 
     
    403403        (void)argc; 
    404404        (void)argv; 
    405         asprintf(&filename, "%s.%d.tmp", getprogname(), getpid()); 
     405        snprintf(filename, sizeof filename, "%s.%d.tmp", t_progname, getpid()); 
    406406        if (filename == NULL) 
    407407                err(1, "asprintf()"); 
Note: See TracChangeset for help on using the changeset viewer.