summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-02-11 11:29:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2001-02-11 11:29:22 +0100
commitc0ed9649a3f32b4510eddb47dfd82bcc860eac70 (patch)
tree1302204c7951816cad401e604d1ba3a8c42cb6ae /tools.c
parent535e755278ef51b923a71299204ec86da4229d02 (diff)
downloadvdr-c0ed9649a3f32b4510eddb47dfd82bcc860eac70.tar.gz
vdr-c0ed9649a3f32b4510eddb47dfd82bcc860eac70.tar.bz2
Fixed handling ':' in timer filenames and '\n' in timer summaries
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index 9546dd11..bc82a407 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.28 2001/02/04 11:27:49 kls Exp $
+ * $Id: tools.c 1.29 2001/02/11 11:18:45 kls Exp $
*/
#define _GNU_SOURCE
@@ -51,7 +51,7 @@ char *strreplace(char *s, char c1, char c2)
{
char *p = s;
- while (*p) {
+ while (p && *p) {
if (*p == c1)
*p = c2;
p++;