diff options
| -rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.127 2005/10/26 13:28:19 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.128 2005/12/15 18:53:34 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -740,7 +740,7 @@ static const char *scanformat (lua_State *L, const char *strfrmt, char *form) { | |||
| 740 | 740 | ||
| 741 | 741 | ||
| 742 | static void addintlen (char *form) { | 742 | static void addintlen (char *form) { |
| 743 | int l = strlen(form); | 743 | size_t l = strlen(form); |
| 744 | char spec = form[l - 1]; | 744 | char spec = form[l - 1]; |
| 745 | strcpy(form + l - 1, LUA_INTFRMLEN); | 745 | strcpy(form + l - 1, LUA_INTFRMLEN); |
| 746 | form[l + sizeof(LUA_INTFRMLEN) - 2] = spec; | 746 | form[l + sizeof(LUA_INTFRMLEN) - 2] = spec; |
