Lines 76-82
char *transform(char *username, char *password) {
Link Here
|
76 |
|
76 |
|
77 |
strncpy(old_password, password, sizeof(char)*41); |
77 |
strncpy(old_password, password, sizeof(char)*41); |
78 |
|
78 |
|
79 |
while ((cur_element = elements[i]) != (char)NULL) { |
79 |
while ((cur_element = elements[i]) != NULL) { |
80 |
if (!strcmp(password, "{username}")) |
80 |
if (!strcmp(password, "{username}")) |
81 |
strncpy(insertion, username, sizeof(insertion)); |
81 |
strncpy(insertion, username, sizeof(insertion)); |
82 |
else if (!strcmp(password, "{emanresu}")) |
82 |
else if (!strcmp(password, "{emanresu}")) |
Lines 120-126
void common_pairs(void) {
Link Here
|
120 |
} |
120 |
} |
121 |
|
121 |
|
122 |
while (1) { |
122 |
while (1) { |
123 |
if (common_pairs_list[i] == (char)NULL) |
123 |
if (common_pairs_list[i] == NULL) |
124 |
break; |
124 |
break; |
125 |
strncpy(username, common_pairs_list[i], sizeof(char)*81); |
125 |
strncpy(username, common_pairs_list[i], sizeof(char)*81); |
126 |
password = extract(username, ':'); |
126 |
password = extract(username, ':'); |
127 |
- |
|
|