slackbuilds_ponce/audio/audtty/patches/02-fix_possible_overflow.patch
Matteo Bernardini b91b25e175 audio/audtty: Updated for version 0.1.12.
Added also some patches from git.
Rewritten the gcc/DESTDIR patch

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2012-09-16 19:44:40 -04:00

22 lines
637 B
Diff

From 92bcd204331ba673073acc25c7480cddce1e2b87 Mon Sep 17 00:00:00 2001
From: Chris Taylor <chris@code-monkeys.org>
Date: Fri, 05 Mar 2010 06:11:41 +0000
Subject: Fix possible overflow.
Signed-off-by: Chris Taylor <chris@code-monkeys.org>
---
diff --git a/playlist_create.c b/playlist_create.c
index 475a494..f8f84c5 100644
--- a/playlist_create.c
+++ b/playlist_create.c
@@ -67,7 +67,7 @@ void playlist_create( void )
buffer[--len] = '\0';
break;
default:
- if (len == 1025) break;
+ if (len >= 1024) break;
if (c < 32) break;
buffer[len] = c;
buffer[++len] = '\0';
--
cgit v0.8.3.4-115-g1759