diff options
author | QC <qball@gmpclient.org> | 2015-09-19 20:59:50 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-09-19 21:00:06 +0200 |
commit | 31fe5759b8bede7a31535c61977b9efe2438d789 (patch) | |
tree | f5f8222d560ed666f85e9ee5f98fa958b6c2f39d /source/keyb.c | |
parent | b18d68eff26429ed08d560b187c46770eb7db0b2 (diff) |
More line fixing.
Diffstat (limited to 'source/keyb.c')
-rw-r--r-- | source/keyb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/keyb.c b/source/keyb.c index e9577d05..4d9c2cd5 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -111,10 +111,8 @@ void parse_keys_abe ( void ) abe[iter].num_bindings = 0; // Iter over bindings. - for ( char *entry = strtok_r ( keystr, ",", &sp ); entry != NULL; - entry = strtok_r ( NULL, ",", &sp ) ) { - abe[iter].kb = - g_realloc ( abe[iter].kb, ( abe[iter].num_bindings + 1 ) * sizeof ( KeyBinding ) ); + for ( char *entry = strtok_r ( keystr, ",", &sp ); entry != NULL; entry = strtok_r ( NULL, ",", &sp ) ) { + abe[iter].kb = g_realloc ( abe[iter].kb, ( abe[iter].num_bindings + 1 ) * sizeof ( KeyBinding ) ); KeyBinding *kb = &( abe[iter].kb[abe[iter].num_bindings] ); x11_parse_key ( entry, &( kb->modmask ), &( kb->keysym ) ); abe[iter].num_bindings++; |