Skip to content

Commit

Permalink
avoid crash from writing to a string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Apr 10, 2015
1 parent 1d9883a commit b3484d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmc/trunk/src/mcx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ int mcx_lookupindex(char *key, const char *index){
int mcx_keylookup(char *key, const char *table[]){
int i=0;
while(key[i]){
key[i]=tolower(key[i]);
if(key[i]>='A' && key[i]<='Z')
key[i]+=('a'-'A');
i++;
}
i=0;
Expand Down

0 comments on commit b3484d2

Please sign in to comment.