Subversion Repositories SvarDOS

Rev

Rev 1140 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1140 Rev 2216
Line 1... Line 1...
1
/* This file is part of the SvarCOM project and is published under the terms
1
/* This file is part of the SvarCOM project and is published under the terms
2
 * of the MIT license.
2
 * of the MIT license.
3
 *
3
 *
4
 * Copyright (C) 2021-2022 Mateusz Viste
4
 * Copyright (C) 2021-2024 Mateusz Viste
5
 *
5
 *
6
 * Permission is hereby granted, free of charge, to any person obtaining a
6
 * Permission is hereby granted, free of charge, to any person obtaining a
7
 * copy of this software and associated documentation files (the "Software"),
7
 * copy of this software and associated documentation files (the "Software"),
8
 * to deal in the Software without restriction, including without limitation
8
 * to deal in the Software without restriction, including without limitation
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Line 75... Line 75...
75
  }
75
  }
76
 
76
 
77
  /* otherwise set PATH to whatever is passed on command-line */
77
  /* otherwise set PATH to whatever is passed on command-line */
78
  {
78
  {
79
    unsigned short i;
79
    unsigned short i;
80
    strcpy(buff, "PATH=");
80
    sv_strcpy(buff, "PATH=");
81
    for (i = 0;; i++) {
81
    for (i = 0;; i++) {
82
      buff[i + 5] = p->argv[0][i];
82
      buff[i + 5] = p->argv[0][i];
83
      if (buff[i + 5] == 0) break;
83
      if (buff[i + 5] == 0) break;
84
    }
84
    }
85
    nls_strtoup(buff); /* upcase path, ref: https://osdn.net/projects/svardos/ticket/44146 */
85
    nls_strtoup(buff); /* upcase path, ref: https://osdn.net/projects/svardos/ticket/44146 */