any command line option starts with +p won't be correctly parsed. charmrun abort...
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 20 Mar 2010 04:02:43 +0000 (23:02 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 20 Mar 2010 04:02:43 +0000 (23:02 -0500)
src/arch/net/charmrun/charmrun.c

index 014e70af2fb7e586fa7ffea903b9a4bec4eda662..57263ae41e8bb83e9ea01d5b978277fa268e64ee 100644 (file)
@@ -518,8 +518,11 @@ int pparam_parseopt()
     {
       char name[2];
       name[0]=opt[1];
+      if (strlen(opt)<=2 || !isalpha(opt[2]))
+      {
       name[1]=0;
       def = pparam_find(name);
+      }
     }
   if (def==NULL)
   {