We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e2396 commit bd8125cCopy full SHA for bd8125c
kfc.c
@@ -164,6 +164,7 @@ main(int argc, char **argv)
164
fprintf(stderr, "No argumemts provided\n");
165
exit(2);
166
}
167
+
168
extern char *optarg;
169
extern int optind, optopt;
170
p.MODE = "dark";
@@ -173,13 +174,14 @@ main(int argc, char **argv)
173
174
175
176
strcat(p.CONF, "/kfc");
177
+ sprintf(p.CCUR, "%s/current", p.CONF);
178
+ sprintf(p.CSEQ, "%s/sequence", p.CONF);
179
180
if ( mkdir(p.CONF,0777) == 0 )
181
{
182
printf("Created 'kfc' directory in XDG_CONFIG_HOME.");
183
- sprintf(p.CCUR, "%s/current", p.CONF);
- sprintf(p.CSEQ, "%s/sequence", p.CONF);
-
184
185
if (find_palettes() == 1)
186
187
fprintf(stderr, "Palette directory not found\n");
0 commit comments