diff options
author | jdolecek <jdolecek> | 2003-01-06 20:41:53 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2003-01-06 20:41:53 +0000 |
commit | e0fa732281d292d9f132665dcce638b4d0520935 (patch) | |
tree | 57e98907109954d697e2fea9fedbdddb8ceac4db /devel/pwlib | |
parent | db6d39d9835da89642e2ebfa6ae7e97f1c3057e0 (diff) | |
download | pkgsrc-e0fa732281d292d9f132665dcce638b4d0520935.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/pwlib')
-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); |