Changeset 785 for soft


Ignore:
Timestamp:
Feb 8, 2016, 3:57:45 PM (8 years ago)
Author:
alain
Message:

Avoid a warning in strcpy()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/string.c

    r781 r785  
    1111    if (!destination || !source) return destination;
    1212
    13     char* src = source;
    1413    char* dst = destination;
    1514    do
    1615    {
    17         *dst = *src;
     16        *dst = *source;
    1817        dst++;
    19         src++;
    20     }  while (*src);
     18        source++;
     19    }  while (*source);
    2120
    2221    *dst = 0;
Note: See TracChangeset for help on using the changeset viewer.