Changeset 58e7b26 in mainline for uspace/lib/c/generic/stdio/sprintf.c


Ignore:
Timestamp:
2018-08-31T19:10:47Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be34d6f
Parents:
bbe5e34
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-20 18:54:48)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-31 19:10:47)
Message:

Make uspace hosted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/stdio/sprintf.c

    rbbe5e34 r58e7b26  
    3636#include <stdint.h>
    3737#include <stdio.h>
     38#include <limits.h>
    3839
    3940/** Print formatted to string.
     
    5354        va_list args;
    5455        va_start(args, fmt);
    55         rc = vsnprintf(s, SIZE_MAX, fmt, args);
     56        rc = vsnprintf(s, INT_MAX, fmt, args);
    5657        va_end(args);
    5758
Note: See TracChangeset for help on using the changeset viewer.