diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-12-21 10:59:43 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-12-21 10:59:43 -0200 |
commit | 428325baecb2f514ea3eb6c87405f93872fb8430 (patch) | |
tree | 6531de56a05a136b3466463a666856a2e6665bcb | |
parent | 0561f71f0f18eb3dddd819cc37c7ed5509e5c5d8 (diff) | |
download | lua-428325baecb2f514ea3eb6c87405f93872fb8430.tar.gz lua-428325baecb2f514ea3eb6c87405f93872fb8430.tar.bz2 lua-428325baecb2f514ea3eb6c87405f93872fb8430.zip |
detail
-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; |