aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-05-24 09:14:48 +0200
committerThomas White <taw@bitwiz.org.uk>2013-05-24 09:14:48 +0200
commit25568bffc829c7e373a9049c713464df456ff6aa (patch)
tree473bd3c03a5dd547170dd4b07492b230441741bb /src/stylesheet.c
parent6647f70cb376a0b123f5c4665985b8c343f3e3c0 (diff)
Fix index
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index b6fec5c..3e30ea3 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -318,7 +318,7 @@ void write_stylesheet(StyleSheet *ss, struct serializer *ser)
struct style *s = t->styles[j];
char id[32];
- snprintf(id, 31, "sty%i", i);
+ snprintf(id, 31, "sty%i", j);
serialize_i(ser, id, style_number(ss, s));