// set string to the memory buffer
memcpy((pBuf + fInfo.flash_persistent_blk_offset + offset), string, strLen);
- // USR9108 add two terminating zeros to the end of the string
- if ( strLen <= fInfo.flash_persistent_length - 2 )
- memcpy((pBuf + fInfo.flash_persistent_blk_offset + offset + strLen), "\0\0", 2);
-
+
if (setSharedBlks(fInfo.flash_persistent_start_blk,
(fInfo.flash_persistent_number_blk + fInfo.flash_persistent_start_blk), pBuf) != 0)
sts = -1;
pBuf = pShareBuf + fInfo.flash_scratch_pad_blk_offset;
memset(pBuf, 0x00, fInfo.flash_scratch_pad_length);
sts = setSharedBlks(fInfo.flash_scratch_pad_start_blk,
- (fInfo.flash_scratch_pad_number_blk + fInfo.flash_scratch_pad_start_blk), pShareBuf);
+ (fInfo.flash_scratch_pad_number_blk + fInfo.flash_scratch_pad_start_blk), pBuf);
retriedKfree(pShareBuf);