diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2003-01-06 20:41:53 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2003-01-06 20:41:53 +0000 |
commit | 192858e2b8abb2d3372569218bb1d7d714b361ae (patch) | |
tree | 57e98907109954d697e2fea9fedbdddb8ceac4db /devel | |
parent | 26b4304aa6e6659781189ebd2b3182cbfc684d4c (diff) | |
download | pkgsrc-192858e2b8abb2d3372569218bb1d7d714b361ae.tar.gz |
string 'audio' has five, not three characters, so skip 5, not 3
problem noted and patch supplied in PR pkg/19715 by Andreas Wrede
Diffstat (limited to 'devel')
-rw-r--r-- | devel/pwlib/patches/patch-ag | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/pwlib/patches/patch-ag b/devel/pwlib/patches/patch-ag index ee70aa37add..25a5ce2c931 100644 --- a/devel/pwlib/patches/patch-ag +++ b/devel/pwlib/patches/patch-ag @@ -1,4 +1,4 @@ -$NetBSD: patch-ag,v 1.2 2002/12/01 18:31:42 jdolecek Exp $ +$NetBSD: patch-ag,v 1.3 2003/01/06 20:41:53 jdolecek Exp $ --- src/ptlib/unix/oss.cxx.orig Sun Dec 1 17:31:20 2002 +++ src/ptlib/unix/oss.cxx Sun Dec 1 17:35:35 2002 @@ -21,7 +21,7 @@ $NetBSD: patch-ag,v 1.2 2002/12/01 18:31:42 jdolecek Exp $ + } + // Look for audioN. Insert at position cardnum + 1 + if ((filename.GetLength() > 5) && (filename.Left(5) == "audio")) { -+ PString numbers = filename.Mid(3); // get everything after 'audio' ++ PString numbers = filename.Mid(5); // get everything after 'audio' + if (IsNumericString(numbers)) { + PINDEX cardnum = numbers.AsInteger(); + dsp.SetAt(cardnum+1, devname); |