Changeset f4b1535 in mainline for kernel/generic/src/debug/symtab.c


Ignore:
Timestamp:
2009-04-09T23:04:10Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6eb2e96
Parents:
095003a8
Message:

str_ncpy() vs str_cpy(). TODO: The same in userspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/debug/symtab.c

    r095003a8 rf4b1535  
    226226        while ((hint = symtab_search_one(name, &pos))) {
    227227                if ((found == 0) || (str_length(output) > str_length(hint)))
    228                         str_ncpy(output, hint, MAX_SYMBOL_NAME);
     228                        str_cpy(output, MAX_SYMBOL_NAME, hint);
    229229               
    230230                pos++;
     
    242242       
    243243        if (found > 0)
    244                 str_ncpy(input, output, size);
     244                str_cpy(input, size, output);
    245245       
    246246        return found;
Note: See TracChangeset for help on using the changeset viewer.