changeset 1121:2e15019ca9cd

const
author corvid <corvid@lavabit.com>
date Fri, 22 May 2009 18:02:05 +0000
parents d4b698cddcad
children 60c594957852
files src/form.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/form.cc	Fri May 22 17:50:10 2009 +0000
+++ b/src/form.cc	Fri May 22 18:02:05 2009 +0000
@@ -1064,7 +1064,7 @@
                             (LabelButtonResource*) input->embed->getResource();
                const char *filename = lbr->getLabel();
                if (filename[0] && strcmp(filename, input->init_str)) {
-                  char *p = strrchr(filename, '/');
+                  const char *p = strrchr(filename, '/');
                   if (p)
                      filename = p + 1;     /* don't reveal path */
                   Dstr *dfilename = dStr_new(filename);