xpp: clean 'Extrainfo' EEPROM field
authorOron Peled <oron.peled@xorcom.com>
Thu, 15 Mar 2012 20:29:09 +0000 (20:29 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Thu, 15 Mar 2012 20:29:09 +0000 (20:29 +0000)
commit971a45a8072e5a0b0e5db17498d7254d7054c0df
tree3796cf3b50691136f8312357af80027b73c77c2b
parent949ea4ca9f9c9050811af9e80d44530beb10fd8f
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>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10491 17933a7a-c749-41c5-a318-cba88f637d49
xpp/mpp.h
xpp/mpptalk.c
xpp/mpptalk_defs.h