Browse Source

Fixed incorrect type of variable ch_cur. It was from const char * but should have been const char.

pre-master-46
Jim Monte 6 years ago
committed by Holger Vogt
parent
commit
7084274344
  1. 2
      src/misc/util.c

2
src/misc/util.c

@ -210,7 +210,7 @@ char *ngdirname(const char *name)
const char *p0 = name + start; /* 1st char past drive */
const char *p;
for (p = p0 + strlen(name + start) - 1; p >= p0; --p) {
const char *ch_cur = *p;
const char ch_cur = *p;
if (ch_cur == '/' || ch_cur == '\\') { /* at last dir sep */
/* Stop copy at last dir sep or right after if
* it is the first char after any drive spec.

Loading…
Cancel
Save