aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-21 10:59:43 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-21 10:59:43 -0200
commit428325baecb2f514ea3eb6c87405f93872fb8430 (patch)
tree6531de56a05a136b3466463a666856a2e6665bcb
parent0561f71f0f18eb3dddd819cc37c7ed5509e5c5d8 (diff)
downloadlua-428325baecb2f514ea3eb6c87405f93872fb8430.tar.gz
lua-428325baecb2f514ea3eb6c87405f93872fb8430.tar.bz2
lua-428325baecb2f514ea3eb6c87405f93872fb8430.zip
detail
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index fdf26af4..c5cb136d 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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
742static void addintlen (char *form) { 742static 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;