diff options
Diffstat (limited to 'src/loader')
-rw-r--r-- | src/loader/loader.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c index fd05f08e64f..449ff54d137 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -413,5 +413,11 @@ loader_get_extensions_name(const char *driver_name) if (asprintf(&name, "%s_%s", __DRI_DRIVER_GET_EXTENSIONS, driver_name) < 0) return NULL; + const size_t len = strlen(name); + for (size_t i = 0; i < len; i++) { + if (name[i] == '-') + name[i] = '_'; + } + return name; } |