Compare commits
1 Commits
eebf004291
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d0172e4ee |
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
|
|||||||
char path[] = "/etc/rmps/rmps.conf";
|
char path[] = "/etc/rmps/rmps.conf";
|
||||||
int path_size = strlen(path) + 1;
|
int path_size = strlen(path) + 1;
|
||||||
|
|
||||||
config = calloc(sizeof(char), path_size);
|
config = calloc(path_size, sizeof(char));
|
||||||
if (config == NULL) {
|
if (config == NULL) {
|
||||||
fprintf(stderr, "calloc() failed for config\n");
|
fprintf(stderr, "calloc() failed for config\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Reference in New Issue
Block a user