Skip to content
Browse files

avoid unquoting unbalanced quoted strings

  • Loading branch information...
1 parent 6196ec2 commit f8e09a7affa399bc62a77b5addab75b718e28624 @falconindy committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 cower.c
View
4 cower.c
@@ -1137,9 +1137,9 @@ alpm_list_t *parse_bash_array(alpm_list_t *deplist, char *array, pkgdetail_t typ
/* unquote the element */
if(*token == '\'' || *token == '\"') {
- token++;
- ptr = strrchr(token, *(token - 1));
+ ptr = strrchr(token + 1, *token);
if(ptr) {
+ token++;
*ptr = '\0';
}
}

0 comments on commit f8e09a7

Please sign in to comment.
Something went wrong with that request. Please try again.