diff options
Diffstat (limited to 'audio/mp3check/patches/patch-ae')
-rw-r--r-- | audio/mp3check/patches/patch-ae | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/audio/mp3check/patches/patch-ae b/audio/mp3check/patches/patch-ae index 1da59af9742..3e45c2cf9dc 100644 --- a/audio/mp3check/patches/patch-ae +++ b/audio/mp3check/patches/patch-ae @@ -1,26 +1,26 @@ -$NetBSD: patch-ae,v 1.2 2005/12/11 22:03:39 joerg Exp $ +$NetBSD: patch-ae,v 1.3 2007/08/31 10:37:37 drochner Exp $ ---- tstring.cc.orig 2003-01-27 21:21:17.000000000 +0000 +--- tstring.cc.orig 2006-09-21 23:17:07.000000000 +0200 +++ tstring.cc -@@ -27,6 +27,7 @@ +@@ -23,6 +23,7 @@ + #include <sys/stat.h> #include <unistd.h> - #endif #include <errno.h> +#include "config.h" #include "tstring.h" #include "texception.h" -@@ -714,12 +715,12 @@ void tstring::truncate(size_t max) { +@@ -716,12 +717,12 @@ void tstring::truncate(size_t max) { void tstring::replaceUnprintable(bool only_ascii) { for(size_t i = 0; i < rep->len; i++) { -- unsigned char& c = (unsigned char)(*rep)[i]; +- unsigned char& c = (unsigned char &)(*rep)[i]; - if(!isprint(c)) { - if(c < ' ') { - c = '!'; - } else if(only_ascii || (c < 0xa0)) { - c = '?'; -+ unsigned char *c = (unsigned char*)&(*rep)[i]; ++ unsigned char *c = (unsigned char *)&(*rep)[i]; + if(!isprint(*c)) { + if(*c < ' ') { + *c = '!'; |