diff options
author | sbd <sbd@pkgsrc.org> | 2012-02-04 07:53:26 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-02-04 07:53:26 +0000 |
commit | 2cd86e92a6eb86e3bd2b756cf5bb4f941c58de04 (patch) | |
tree | 2e01f527062bfcf81cd8da72be6ac1e740d9b6e4 /audio/darkice | |
parent | 17b2b258b60c852cd982f4de9d289cc6e1026ee6 (diff) | |
download | pkgsrc-2cd86e92a6eb86e3bd2b756cf5bb4f941c58de04.tar.gz |
Add a cast to a strrchr call.
Diffstat (limited to 'audio/darkice')
-rw-r--r-- | audio/darkice/distinfo | 4 | ||||
-rw-r--r-- | audio/darkice/patches/patch-src_Util.cpp | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/audio/darkice/distinfo b/audio/darkice/distinfo index d9c2f3f1c52..0941cfa872d 100644 --- a/audio/darkice/distinfo +++ b/audio/darkice/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.10 2012/02/04 07:51:28 sbd Exp $ +$NetBSD: distinfo,v 1.11 2012/02/04 07:53:26 sbd Exp $ SHA1 (darkice-0.17.1.tar.gz) = 2952961c8e99412d831ca619f152ba6774efefac RMD160 (darkice-0.17.1.tar.gz) = b6575b28190276d77e721e2ef15e8a93162693cc Size (darkice-0.17.1.tar.gz) = 1407826 bytes SHA1 (patch-aa) = 6f58c2ae94a9b199ac733fd4b0742178f46dc961 SHA1 (patch-ab) = 51cf308b209b933fe003775116d8b7d986e92476 -SHA1 (patch-ac) = 9a84a058d45f6173b011bf590820405995d8c52f +SHA1 (patch-ac) = 4ba61f7544da079a6e6aaaf49e03ef7c6c3fb8ca SHA1 (patch-src_Makefile_in) = 5627f74907abe9ab0dc297ca8ae7378fe004d3cf SHA1 (patch-src_Util.cpp) = 0721d889d4755c9251eda9248b59c74fea26d980 diff --git a/audio/darkice/patches/patch-src_Util.cpp b/audio/darkice/patches/patch-src_Util.cpp new file mode 100644 index 00000000000..2de8b1e917a --- /dev/null +++ b/audio/darkice/patches/patch-src_Util.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-src_Util.cpp,v 1.1 2012/02/04 07:53:26 sbd Exp $ + +--- src/Util.cpp.orig 2005-04-17 10:58:09.000000000 +0000 ++++ src/Util.cpp +@@ -288,7 +288,7 @@ Util :: fileAddDate ( const char * str ) + strftime( strdate, 128, "[%m-%d-%Y-%H-%M-%S]", localtime (&now)); + + // search for the part before the extension of the file name +- if ( !(last = strrchr( str, '.')) ) { ++ if ( !(last = (char *) strrchr( str, '.')) ) { + last = (char *) str + strlen( str); + } + |