From 9065fb25cc3fd21cf77b041cbec1d8a12b33728d Mon Sep 17 00:00:00 2001
From: Clifford Wolf <clifford@clifford.at>
Date: Thu, 15 Jan 2015 13:36:57 +0100
Subject: [PATCH] Fixed handling of foo.__TECHMAP_...

---
 passes/techmap/techmap.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index 94dd4d42c..b1a40b25e 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -129,7 +129,7 @@ struct TechmapWorker
 				continue;
 
 			const char *q = strrchr(p+1, '.');
-			p = q ? q : p+1;
+			p = q ? q+1 : p+1;
 
 			if (!strncmp(p, "_TECHMAP_", 9)) {
 				TechmapWireData record;