Skip to content

Commit

Permalink
Use char const * in oc_popen.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Sep 25, 2023
1 parent 40ae342 commit 5a92341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oc/fileio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void hoc_sprint1(char** ppbuf, int argn) { /* convert args to right type for con
}

#if defined(WIN32)
static FILE* oc_popen(char* cmd, char* type) {
static FILE* oc_popen(char const* const cmd, char const* const type) {
FILE* fp;
char buf[1024];
assert(strlen(cmd) + 20 < 1024);
Expand Down

0 comments on commit 5a92341

Please sign in to comment.