Skip to content

Commit

Permalink
Correct Workaround Algorithm
Browse files Browse the repository at this point in the history
Made it codepage agnostic:

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
  • Loading branch information
ElijahSwiftIBM committed Nov 1, 2023
1 parent dc1cfdf commit 1e83214
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyracf/common/irrsmo00.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static PyObject* call_irrsmo00(PyObject* self, PyObject* args, PyObject *kwargs)
VarStr_T userid = { 0, {0}};
unsigned int alet = 0;
unsigned int acee = 0;
char rsp[BUFFER_SIZE+1];
unsigned char rsp[BUFFER_SIZE+1];
memset(rsp, 0, BUFFER_SIZE);
unsigned int saf_rc=0, racf_rc=0, racf_rsn=0;
unsigned int num_parms=17, fn=1, opts = input_opts, rsp_len = sizeof(rsp)-1;
Expand All @@ -55,10 +55,9 @@ static PyObject* call_irrsmo00(PyObject* self, PyObject* args, PyObject *kwargs)
rsp
);

int i;
for (i = 1; i < rsp_len; i++){
for (int i = 1; i < rsp_len; i++){
if (rsp[i] == 0) {
if (rsp[i-1] == '>') {
if (rsp[i-1] == 0x6E) {
break;
}
else {
Expand Down

0 comments on commit 1e83214

Please sign in to comment.