summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README1
-rw-r--r--apppbx.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/README b/README
index 90b0ffb..0338a33 100644
--- a/README
+++ b/README
@@ -370,4 +370,5 @@ Lates changes
- Added join/release jingle options for partylines
- Fixed bug that did not release reserved channels, so interface run out of
channels.
+- Bugfixes...
diff --git a/apppbx.cpp b/apppbx.cpp
index 6641b31..f4fa4c9 100644
--- a/apppbx.cpp
+++ b/apppbx.cpp
@@ -309,9 +309,9 @@ void EndpointAppPBX::screen(int out, char *id, int idsize, int *type, int *prese
SCPY(suffix, strchr(ifscreen->match,'%') - ifscreen->match + id);
UNCPY(id, ifscreen->result, idsize);
id[idsize-1] = '\0';
- if (strchr(ifscreen->result,'%'))
+ if (strchr(id,'%'))
{
- *strchr(ifscreen->result,'%') = '\0';
+ *strchr(id,'%') = '\0';
UNCAT(id, suffix, idsize);
id[idsize-1] = '\0';
}