diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 21:43:25 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 21:43:25 +0000 |
commit | eaec9d8edde53284596ec06b3d32c9024c0fafdd (patch) | |
tree | 738f726b1183cc4be7b684a6af8d8b6bd650157f /xpp/mpp.h | |
parent | b7139f5f1674dc4db373aefa6ced65d1713eb5f2 (diff) |
xpp: clean 'Extrainfo' EEPROM field
* Extrainfo field contains junk data
* Caused by:
- The field is initialized to 0xFF values
- There was no null termination (and no room to add it)
* New code:
- Ensure that show_extrainfo() have null termination even if EEPROM
field is full.
- Replace trailing 0xFF characters with '\0' when reading this field
- Since our default burned EEPROM contain Extrainfo field full of
0xFF characters, this would make them look as null filled.
Internal Issue-Id: #1341
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10491
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.6@10515 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/mpp.h')
-rw-r--r-- | xpp/mpp.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ struct capkey { } PACKED; struct extrainfo { - char text[24]; + char text[EXTRAINFO_SIZE]; } PACKED; struct mpp_header { |