diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -62,16 +62,7 @@ lilv_strdup(const char* str) const char* lilv_uri_to_path(const char* uri) { -#ifdef __WIN32__ - if (!strncmp(uri, "file:///", (size_t)8)) { - return (char*)(uri + 8); - } -#else - if (!strncmp(uri, "file://", (size_t)7)) { - return (char*)(uri + 7); - } -#endif - return NULL; + return (const char*)serd_uri_to_path((const uint8_t*)uri); } /** Return the current LANG converted to Turtle (i.e. RFC3066) style. |