1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/cad/spice/files/patch-src_lib_cp_lexical.c
Hiroki Sato cb28a2affc - Fix SIGSEGV when there are spaces after a comma like ".PRINT TRAN v(2, 1)".
- Style clean-ups.

PR:		ports/157313
Spotted by:	Makoto Kishimoto
2013-04-30 20:30:22 +00:00

12 lines
320 B
C

--- src/lib/cp/lexical.c.orig 2013-05-01 05:15:32.000000000 +0900
+++ src/lib/cp/lexical.c 2013-05-01 05:16:36.000000000 +0900
@@ -145,7 +145,7 @@
switch (c) {
case ' ':
case '\t':
- if (i > 0) {
+ if (paren < 1 && i > 0) {
newword;
}
break;