Subversion Repositories SvarDOS

Rev

Rev 1997 | Rev 2195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1997 Rev 2161
Line 710... Line 710...
710
  }
710
  }
711
 
711
 
712
  _fmemcpy(&lastlang, lang, 2);
712
  _fmemcpy(&lastlang, lang, 2);
713
 
713
 
714
  /* update RMOD's critical handler with new strings */
714
  /* update RMOD's critical handler with new strings */
715
  for (i = 0; i < 7; i++) {
715
  for (i = 0; i < 9; i++) {
716
    int len;
716
    int len;
717
    len = strlen(svarlang_str(3, i));
717
    len = strlen(svarlang_str(3, i));
718
    if (len > 15) len = 15;
718
    if (len > 15) len = 15;
719
    _fmemcpy(rmodcritmsg + (i * 16), svarlang_str(3, i), len);
719
    _fmemcpy(rmodcritmsg + (i * 16), svarlang_str(3, i), len);
720
    _fmemcpy(rmodcritmsg + (i * 16) + len, "$", 1);
720
    _fmemcpy(rmodcritmsg + (i * 16) + len, "$", 1);
721
  }
721
  }
722
  /* The ARIF string is special: always 4 bytes long and no $ terminator */
722
  /* The ARIF string is special: always 4 bytes long and no $ terminator */
723
  _fmemcpy(rmodcritmsg + (7 * 16), svarlang_str(3,9), 4);
723
  _fmemcpy(rmodcritmsg + (9 * 16), svarlang_str(3,9), 4);
724
}
724
}
725
 
725
 
726
 
726
 
727
/* locates executable fname in path and fill res with result. returns 0 on success,
727
/* locates executable fname in path and fill res with result. returns 0 on success,
728
 * -1 on failed match and -2 on failed match + "don't even try with other paths"
728
 * -1 on failed match and -2 on failed match + "don't even try with other paths"