Commit ba3215b
Marcel Hecko
Fix callback crash when playing back entered digits (issue #180)
The callback application crashed with a kernel trap when users entered
digits followed by * or #. The bug was caused by undefined behavior:
creating an empty string and writing to index 0.
Fixed by properly converting character digits to strings using int2str(),
which matches how prompts are registered. Also added debug logging to
help troubleshoot digit playback.
This fixes the issue where SEMS would restart after playing back the
entered number.1 parent 6e113db commit ba3215b
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
283 | 285 | | |
284 | | - | |
285 | | - | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
0 commit comments