home · contact · privacy
Corrected line lengths.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 23 Sep 2013 02:07:02 +0000 (04:07 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 23 Sep 2013 02:07:02 +0000 (04:07 +0200)
src/main.c
src/wincontrol.c

index fcaac80e3556d1b6e0912775a67f7ddfd4f563cc..5d253ce186f58b55fd8d3c4e60014850578cb9d0 100644 (file)
@@ -7,10 +7,12 @@
 #include <time.h> /* for time() */
 #include <unistd.h> /* for getopt(), optarg */
 #include <stdint.h> /* for uint32_t */
-#include "windows.h" /* for structs WinMeta, Win, init_win_meta(), draw_all_wins()
+#include "windows.h" /* for structs WinMeta, Win, init_win_meta(),
+                      * draw_all_wins()
                       */
-#include "readwrite.h" /* for read_uint32_bigendian](), write_uint32_bigendian(),
-                        * try_fopen(), try_fclose(), try_fclose_unlink_rename()
+#include "readwrite.h" /* for read_uint32_bigendian](),
+                        * write_uint32_bigendian(), try_fopen(), try_fclose(),
+                        * try_fclose_unlink_rename()
                         */
 #include "map_objects.h" /* for structs MapObj Player, init_map_object_defs(),
                           * build_map_objects()
index 91431814f9fd6629850b3d5696e0e3985aa1b596..3d0307817397343b8a42fb008e4a9da29b98466e 100644 (file)
@@ -208,12 +208,12 @@ static void save_win_config(struct World * world, char id)
     }
     linemax = linemax + 6;         /* + 6 = + 3 digits + whitespace + \n + \0 */
 
-    char keyb_line[linemax];
+    char kb_line[linemax];
     kb_p = wc->kb.kbs;
     while (0 != kb_p)
     {
-        snprintf(keyb_line, linemax, "%d %s\n", kb_p->key, kb_p->name);
-        try_fwrite(keyb_line, sizeof(char), strlen(keyb_line), file, world, f_name);
+        snprintf(kb_line, linemax, "%d %s\n", kb_p->key, kb_p->name);
+        try_fwrite(kb_line, sizeof(char), strlen(kb_line), file, world, f_name);
         kb_p = kb_p->next;
     }