From 320d4976d1d010b5abe9d61a7423d8ca06bc34df Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 24 Feb 2012 18:06:46 +0100 Subject: [PATCH] [bdf] Fix Savannah bugs #35597 and #35598. * src/bdf/bdflib.c (_bdf_is_atom): Fix handling of property value. --- ChangeLog | 6 ++++++ src/bdf/bdflib.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a13e8a54..cf83e7955 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-02-24 Werner Lemberg + + [bdf] Fix Savannah bugs #35597 and #35598. + + * src/bdf/bdflib.c (_bdf_is_atom): Fix handling of property value. + 2012-02-24  Vinnie Falco Prepare source code for amalgamation (6/6). diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c index f51182e90..37ffc1ee3 100644 --- a/src/bdf/bdflib.c +++ b/src/bdf/bdflib.c @@ -1,6 +1,6 @@ /* * Copyright 2000 Computing Research Labs, New Mexico State University - * Copyright 2001-2011 + * Copyright 2001-2012 * Francesco Zappa Nardelli * * Permission is hereby granted, free of charge, to any person obtaining a @@ -1254,7 +1254,8 @@ ep = line + linelen; /* Trim the leading whitespace if it exists. */ - *sp++ = 0; + if ( *sp ) + *sp++ = 0; while ( *sp && ( *sp == ' ' || *sp == '\t' ) ) sp++;