source: net-ftp/oftpd/files/oftpd-0.3.7-error-output.patch @ f3987e6

Revision f3987e6, 706 bytes checked in by Mario Fetka <mario.fetka@…>, 10 months ago (diff)

Bump

  • Property mode set to 100644
  • src/error.c

    fix writing of the error message to stderr by processing the varargs
    
    a b void error_init(error_t *err, int error_code, const char *desc_fmt, ...) 
    2323{ 
    2424    va_list args; 
    2525 
    26     fprintf(stderr, "error_init: %d %s", error_code, desc_fmt); 
    2726    daemon_assert(err != NULL); 
    2827    daemon_assert(error_code >= 0); 
    2928    daemon_assert(desc_fmt != NULL); 
    void error_init(error_t *err, int error_code, const char *desc_fmt, ...) 
    3231    va_start(args, desc_fmt); 
    3332    vsnprintf(err->desc, sizeof(err->desc), desc_fmt, args); 
    3433    va_end(args); 
     34    fprintf(stderr, "error_init: %d %s\n", error_code, err->desc); 
    3535 
    3636    daemon_assert(invariant(err)); 
    3737} 
Note: See TracBrowser for help on using the repository browser.