| 1 |
kkofler |
1.1 |
--- a/src/bdf/bdflib.c
|
| 2 |
|
|
+++ b/src/bdf/bdflib.c
|
| 3 |
|
|
@@ -1,6 +1,6 @@
|
| 4 |
|
|
/*
|
| 5 |
|
|
* Copyright 2000 Computing Research Labs, New Mexico State University
|
| 6 |
|
|
- * Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010
|
| 7 |
|
|
+ * Copyright 2001-2012
|
| 8 |
|
|
* Francesco Zappa Nardelli
|
| 9 |
|
|
*
|
| 10 |
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 11 |
|
|
@@ -1254,7 +1254,8 @@
|
| 12 |
|
|
ep = line + linelen;
|
| 13 |
|
|
|
| 14 |
|
|
/* Trim the leading whitespace if it exists. */
|
| 15 |
|
|
- *sp++ = 0;
|
| 16 |
|
|
+ if ( *sp )
|
| 17 |
|
|
+ *sp++ = 0;
|
| 18 |
|
|
while ( *sp &&
|
| 19 |
|
|
( *sp == ' ' || *sp == '\t' ) )
|
| 20 |
|
|
sp++;
|