diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/helpers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index ef0c8e88..eb00acb8 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -242,11 +242,16 @@ void FillCPUCaps(ALuint capfilter) char buf[256]; while(fgets(buf, sizeof(buf), file) != NULL) { + size_t len; char *str; if(strncmp(buf, "Features\t:", 10) != 0) continue; + len = strlen(buf); + while(len > 0 && isspace(buf[len-1])) + buf[--len] = 0; + TRACE("Got features string:%s\n", buf+10); str = buf; |