Changeset b52ef5a in mainline for uspace/lib/posix/string.c


Ignore:
Timestamp:
2011-07-01T21:48:16Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b4c64a
Parents:
517cedc0
Message:

Fix up string.h a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/string.c

    r517cedc0 rb52ef5a  
    3838#include "string.h"
    3939
    40 #include <assert.h>
    41 #include <str_error.h>
    42 #include <stdlib.h>
    43 #include <errno.h>
     40#include "libc/assert.h"
     41#include "libc/str_error.h"
     42#include "errno.h"
     43#include "limits.h"
     44#include "stdlib.h"
    4445
    4546/**
     
    225226char *posix_strdup(const char *s)
    226227{
    227         // FIXME: SIZE_MAX doesn't work
    228         return posix_strndup(s, STR_NO_LIMIT);
     228        return posix_strndup(s, SIZE_MAX);
    229229}
    230230
Note: See TracChangeset for help on using the changeset viewer.