X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=i3-input%2Fmain.c;fp=i3-input%2Fmain.c;h=64a089dd8f9cb5d947f4f572a8c0361531556310;hb=fbfbdb8e124480bc90bbd6a8b59c1692c4ebd531;hp=e196891c343d5cbfcb4b0deff322ed12f7aa9f18;hpb=065ce6b8fcd3510033d81f5f3731a765e1324b91;p=i3%2Fi3 diff --git a/i3-input/main.c b/i3-input/main.c index e196891c..64a089dd 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -176,14 +176,14 @@ static int handle_key_release(void *ignored, xcb_connection_t *conn, xcb_key_rel static void finish_input() { char *command = (char *)concat_strings(glyphs_utf8, input_position); - /* count the occurences of %s in the string */ + /* count the occurrences of %s in the string */ int c; int len = strlen(format); int cnt = 0; for (c = 0; c < (len - 1); c++) if (format[c] == '%' && format[c + 1] == 's') cnt++; - printf("occurences = %d\n", cnt); + printf("occurrences = %d\n", cnt); /* allocate space for the output */ int inputlen = strlen(command);