there's more coming around here, i just want this to be a separate
commit for posterity (should anything go wrong later on)
>From f0302f1532915d2ebfcfa36382c98e5afaf19035 Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Mon, 29 Mar 2010 14:46:24 +0200
Subject: [PATCH] An XLFD has exactly 15 fields, not "at least" 15 fields.
---
util/fontconv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/util/fontconv.c b/util/fontconv.c
index 9eb6da5..e470998 100644
--- a/util/fontconv.c
+++ b/util/fontconv.c
@@ -37,7 +37,7 @@ static str *getXLFDTokens(char *xlfd)
int i, len, size;
char *ptr;
- if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') < XLFD_TOKENS)
+ if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') != XLFD_TOKENS)
return NULL;
memset(tokens, 0, sizeof(str) * XLFD_TOKENS);
--
1.7.0
--
[-]
mkdir /nonexistentFrom f0302f1532915d2ebfcfa36382c98e5afaf19035 Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Mon, 29 Mar 2010 14:46:24 +0200
Subject: [PATCH] An XLFD has exactly 15 fields, not "at least" 15 fields.
---
util/fontconv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/util/fontconv.c b/util/fontconv.c
index 9eb6da5..e470998 100644
--- a/util/fontconv.c
+++ b/util/fontconv.c
@@ -37,7 +37,7 @@ static str *getXLFDTokens(char *xlfd)
int i, len, size;
char *ptr;
- if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') < XLFD_TOKENS)
+ if (!xlfd || *xlfd != '-' || countChar(xlfd, '-') != XLFD_TOKENS)
return NULL;
memset(tokens, 0, sizeof(str) * XLFD_TOKENS);
--
1.7.0