shithub: mc

Download patch

ref: 4d289ad72fef356eb6a49b8401997eda42ef8867
parent: eee59735f50d66110088f922941c33991f8f6e09
author: Ori Bernstein <[email protected]>
date: Sat Oct 11 14:17:52 EDT 2014

Break out of 'use' search with likely terminators.

--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -181,7 +181,7 @@
     p += 3;
     if (!isspace(*p))
         return 0;
-    while (isspace(*p) && p != end)
+    while (isspace(*p) && *p != ';' && *p != '"' && p != end)
         p++;
 
     w = p;