[FIX] wrong function call
authorNikita Kalyazin <n.kalyazin@samsung.com>
Wed, 28 Aug 2013 06:49:34 +0000 (10:49 +0400)
committerNikita Kalyazin <n.kalyazin@samsung.com>
Wed, 28 Aug 2013 06:49:34 +0000 (10:49 +0400)
Fix for e9758a9c9094acba1217dc6419cd346b5c473be7

daemon/elf.c

index 2adf50c..b86fe5d 100644 (file)
@@ -136,7 +136,7 @@ void suffix_filename(char buf[PATH_MAX], const char *filename)
        char adj_filename[PATH_MAX];
        sprintf(adj_filename, "%s.exe", filename);
        char *use_filename = exist(adj_filename) ? adj_filename : filename;
-       strcmp(buf, use_filename);
+       strcpy(buf, use_filename);
 }
 
 void get_build_dir(char builddir[PATH_MAX], const char *filename)