Changeset 11671 for firmware


Ignore:
Timestamp:
Jul 27, 2011, 8:16:30 PM (8 years ago)
Author:
tbretz
Message:
Fixed a bug in nc_format - nc_format_buffer is already the pointer and can be used directly. The address of it just points somewhere into the memory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FSC/src/num_conversion.c

    r10753 r11671  
    1919{
    2020  U08 len = strlen((const char *)source_ptr);
    21   pU08 dest_ptr = (pU08)&nc_format_buffer;
     21  pU08 dest_ptr = nc_format_buffer;
    2222
    2323  // Fillup loop
     
    3535  *dest_ptr = 0; // Terminate format string
    3636
    37   return (pU08)&nc_format_buffer;
     37  return nc_format_buffer;
    3838}
    3939//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.