Skip to content

Commit

Permalink
Revert "Minor WIN32/POSIX bug in resolve_origin()"
Browse files Browse the repository at this point in the history
This reverts commit c9985fc.
  • Loading branch information
nicowilliams committed Feb 4, 2014
1 parent 6c4423c commit 2820cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/krb5/plugin.c
Expand Up @@ -244,9 +244,9 @@ resolve_origin(const char *di)
#ifdef _WIN32
p = strrchr(dname, '\\');
if (p == NULL)
#else
p = strrchr(dname, '/');
#endif

p = strrchr(dname, '/');
if (p) {
if (asprintf(&path, "%.*s%s", (int) (p - dname), dname, di) == -1)
return NULL;
Expand Down

0 comments on commit 2820cd7

Please sign in to comment.