diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-07-19 19:16:00 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-07-19 19:16:00 +0300 |
commit | 336c47ec6413c939d2c66fe60ebef7d8d251074d (patch) | |
tree | fc433adfd57fba691e195b9663c1bfeda077b3d5 | |
parent | 56c0594f9da16ae0505a6fd4fd55d45dbdf8845b (diff) | |
download | vdr-plugin-osdteletext-336c47ec6413c939d2c66fe60ebef7d8d251074d.tar.gz vdr-plugin-osdteletext-336c47ec6413c939d2c66fe60ebef7d8d251074d.tar.bz2 |
Fix valid page number check in TeletextBrowser::ExecuteAction (Closes #154)
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | menu.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ VDR Plugin 'osdteletext' Revision History 20xx-xx-xx: version x.x.x - Updated Italian translation provided by Diego Pierotto (Closes #151) +- Fix valid page number check in TeletextBrowser::ExecuteAction (Closes #154) 2009-06-02: version 0.8.3 - Updated Ukrainian translation provided by Yarema P. aka Knedlyk (Closes #133) @@ -319,7 +319,7 @@ void TeletextBrowser::ExecuteAction(eTeletextAction e) { //This means, we convert the number to what it would be if the string //had been parsed with hexadecimal base. int pageNr=PSEUDO_HEX_TO_DECIMAL((int)e); - if (0x100<=pageNr<=0x899) { + if (0x100<=pageNr && pageNr<=0x899) { if (selectingChannel) { selectingChannel=false; Display::ClearMessage(); |