Commit 75d527fd authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[Gen User] Remove compilation warning of source and destination identical in...

[Gen User] Remove compilation warning of source and destination identical in sprintf. We want a concatenation.
parent 093b1247
......@@ -48,8 +48,7 @@ char* find_user_path(char* mbsfile) {
// Check if file is in dataR folder.
if (strcmp(ptr, "/dataR") == 0) {
*ptr = '\0';
sprintf(userpath, "%s/userfctR/", userpath);
strcat(userpath, "/userfctR/");
}
else {
printf("ERROR: the *.mbs file must be in the dataR folder. \n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment