summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-05-29 09:09:45 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-05-29 09:09:45 +0000
commit8cd3f8452c65f2fbf423470e7e87999eaa2ba9fc (patch)
treeeafd562cb21ae073941d87e14fd31dd00c4a05e5
parent602bad427a0f9edbbc665033cc3ce8d1883323c9 (diff)
fix error when a comment is on the last line of the file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26370 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--utils/skinupdater/skinupdater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/skinupdater/skinupdater.c b/utils/skinupdater/skinupdater.c
index c354234e27..9329b9a9f0 100644
--- a/utils/skinupdater/skinupdater.c
+++ b/utils/skinupdater/skinupdater.c
@@ -242,7 +242,7 @@ top:
}
else if (*in == '#')
{
- while (*in != '\n')
+ while (*in && *in != '\n')
{
PUTCH(out, *in++);
}