Changeset 92fd52d7 in mainline for uspace/lib/libc/generic/getopt.c


Ignore:
Timestamp:
2009-04-09T21:16:50Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7afb4a5
Parents:
a2c58f6
Message:

Nuke strcpy() and strcmp().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/getopt.c

    ra2c58f6 r92fd52d7  
    383383                        has_equal++;
    384384                } else
    385                         current_argv_len = strlen(current_argv);
     385                        current_argv_len = str_size(current_argv);
    386386           
    387387                for (i = 0; long_options[i].name; i++) {
     
    391391                                continue;
    392392
    393                         if (strlen(long_options[i].name) ==
     393                        if (str_size(long_options[i].name) ==
    394394                            (unsigned)current_argv_len) {
    395395                                /* exact match */
Note: See TracChangeset for help on using the changeset viewer.