diff options
author | Ben Loftis <ben@glw.com> | 2010-01-13 16:27:51 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2010-01-13 16:27:51 +0000 |
commit | 496a2da48f8a02a4be7761f0da6eb0b3828ee68b (patch) | |
tree | 58bcc3fcf991636471c474b9ce7bb93db9b7f9cc /libs/appleutility | |
parent | bab9bc0bd2c3e1f0abf3bfb75c1777cda0506a8d (diff) |
fix unprintable chars in au_cache file, version it, and overwrite files of the old version
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6485 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/appleutility')
-rw-r--r-- | libs/appleutility/CAComponentDescription.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libs/appleutility/CAComponentDescription.cpp b/libs/appleutility/CAComponentDescription.cpp index 261a2b881c..fbfaa8efcb 100644 --- a/libs/appleutility/CAComponentDescription.cpp +++ b/libs/appleutility/CAComponentDescription.cpp @@ -54,12 +54,8 @@ char *StringForOSType (OSType t, char *writeLocation) unsigned char str[4], *q = str; *(UInt32 *)str = EndianU32_NtoB(t); for (int i = 0; i < 4; ++i) { - if (isprint(*q) && *q != '\\') - *p++ = *q++; - else { - sprintf(p, "\\x%02X", *q++); - p += 4; - } + sprintf(p, "\\x%02X", *q++); + p += 4; } *p = '\0'; return writeLocation; |