Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/http/src/headers.c

    r4f4018b r1433ecda  
    8585{
    8686        /* TODO properly split long header values */
    87         return snprintf(buf, buf_size,
    88             HTTP_HEADER_LINE, header->name, header->value);
     87        if (buf == NULL) {
     88                return printf_size(HTTP_HEADER_LINE, header->name, header->value);
     89        } else {
     90                return snprintf(buf, buf_size,
     91                    HTTP_HEADER_LINE, header->name, header->value);
     92        }
    8993}
    9094
Note: See TracChangeset for help on using the changeset viewer.