diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pulsecore/core-util.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index aac7629e..6a0bd0ac 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -627,9 +627,14 @@ PA_STATIC_TLS_DECLARE(signame, pa_xfree);  const char *pa_sig2str(int sig) {      char *t; -    if (sig <= 0 || sig >= _NSIG) +    if (sig <= 0)          goto fail; -     + +#ifdef NSIG +	if (sig >= NSIG) +		goto fail; +#endif +  #ifdef HAVE_SIG2STR      {          char buf[SIG2STR_MAX]; | 
