Fossil SCM

Minor typo correction in comment---no functional change.

andybradford 2019-08-31 18:22 trunk
Commit ab2b8de8962831ef515f3ef4a0708eaa531d71935bbe17d48ecadaf0b55ffc43
1 file changed +1 -1
+1 -1
--- src/th.c
+++ src/th.c
@@ -204,11 +204,11 @@
204204
static int thBufferWrite(Th_Interp *interp, Buffer *, const char *, int);
205205
static void thBufferInit(Buffer *);
206206
static void thBufferFree(Th_Interp *interp, Buffer *);
207207
208208
/*
209
-** This version of memcpy() allows the first are second argument to
209
+** This version of memcpy() allows the first and second argument to
210210
** be NULL as long as the number of bytes to copy is zero.
211211
*/
212212
static void *th_memcpy(void *dest, const void *src, size_t n){
213213
return n>0 ? memcpy(dest,src,n) : dest;
214214
}
215215
--- src/th.c
+++ src/th.c
@@ -204,11 +204,11 @@
204 static int thBufferWrite(Th_Interp *interp, Buffer *, const char *, int);
205 static void thBufferInit(Buffer *);
206 static void thBufferFree(Th_Interp *interp, Buffer *);
207
208 /*
209 ** This version of memcpy() allows the first are second argument to
210 ** be NULL as long as the number of bytes to copy is zero.
211 */
212 static void *th_memcpy(void *dest, const void *src, size_t n){
213 return n>0 ? memcpy(dest,src,n) : dest;
214 }
215
--- src/th.c
+++ src/th.c
@@ -204,11 +204,11 @@
204 static int thBufferWrite(Th_Interp *interp, Buffer *, const char *, int);
205 static void thBufferInit(Buffer *);
206 static void thBufferFree(Th_Interp *interp, Buffer *);
207
208 /*
209 ** This version of memcpy() allows the first and second argument to
210 ** be NULL as long as the number of bytes to copy is zero.
211 */
212 static void *th_memcpy(void *dest, const void *src, size_t n){
213 return n>0 ? memcpy(dest,src,n) : dest;
214 }
215

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button