Navigation Menu

Skip to content

Commit

Permalink
Fix overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 8, 2012
1 parent c0687a8 commit 42e6484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrn_sys.c
Expand Up @@ -142,7 +142,7 @@ char *mrn_table_name_gen(const char *arg, char *dest)
dest[j++] = 'f';
i++;
}
for (; i <= len ;) {
for (; i < len ;) {
dest[j++] = arg[++i];
}
dest[j] = '\0';
Expand All @@ -157,7 +157,7 @@ char *mrn_table_name_gen_for_mysql(const char *arg, char *dest)
int len = strlen(arg);
int i=len, j=0;
for (; arg[--i] != '/' ;) {}
for (; i <= len ;) {
for (; i < len ;) {
dest[j++] = arg[++i];
}
dest[j] = '\0';
Expand Down

0 comments on commit 42e6484

Please sign in to comment.