mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
b91b25e175
Added also some patches from git. Rewritten the gcc/DESTDIR patch Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
22 lines
637 B
Diff
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
|