Changeset e436cfe in mainline for uspace/app/bdsh/util.h


Ignore:
Timestamp:
2008-10-02T07:49:38Z (16 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c2ad500
Parents:
119c335
Message:

cli_redup() should be size_t and return as such to avoid undefined behavior with large strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/util.h

    r119c335 re436cfe  
    66/* Internal string handlers */
    77extern char * cli_strdup(const char *);
    8 extern int cli_redup(char **, const char *);
     8extern size_t cli_redup(char **, const char *);
    99extern int cli_psprintf(char **, const char *, ...);
    1010extern char * cli_strtok_r(char *, const char *, char **);
Note: See TracChangeset for help on using the changeset viewer.