Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35434
b: refs/heads/master
c: 14a036d
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg authored and Sam Ravnborg committed Sep 25, 2006
1 parent 144f428 commit f8bce17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01f1c8799ad8b23c190d59cf1c9e28e6fed390a4
refs/heads/master: 14a036d2dc304797f3624c06bd6d2a1e9b59e45a
9 changes: 8 additions & 1 deletion trunk/scripts/unifdef.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,14 @@ ignoreon(void)
static void
keywordedit(const char *replacement)
{
strlcpy(keyword, replacement, tline + sizeof(tline) - keyword);
size_t size = tline + sizeof(tline) - keyword;
char *dst = keyword;
const char *src = replacement;
if (size != 0) {
while ((--size != 0) && (*src != '\0'))
*dst++ = *src++;
*dst = '\0';
}
print();
}
static void
Expand Down

0 comments on commit f8bce17

Please sign in to comment.