]> git.sesse.net Git - movit/blobdiff - make_bundled_shaders.cpp
Fix an off-by-one in shader bundle generation.
[movit] / make_bundled_shaders.cpp
index 53ce13fac597d37cf69f9bb1781cb88f48bc107b..225d08431d3022a0d9cba99de6b39366def8bc59 100644 (file)
@@ -54,7 +54,7 @@ int main(int argc, char **argv)
                } else if (ch == '\\') {        
                        printf("\\\\");
                } else if (!isprint(ch)) {
-                       printf("\\0%o", ch);
+                       printf("\\%o", ch);
                } else {
                        printf("%c", ch);
                }